Previous Page | Next Page

Macro Facility under UNIX

Macro Functions in UNIX Environments

The following functions have operating environment dependencies:


searches for a word that is specified by its position in a string. Here is the form of the %SCAN function:

On ASCII systems, the default delimiters are the following:
blank . < ( + & ! $ * ) ; ^ - / , % |

returns the character string that is the value of the environment variable passed as the argument. Both UNIX and SAS environment variables can be translated using the %SYSGET function. A warning message is written if the global variable does not exist. Here is the form of the %SYSGET function:


For example, the following code writes the value of the HOME environment variable to the SAS log:

%let var1=%sysget(HOME);
%put &var1;

Previous Page | Next Page | Top of Page