Macro Facility under OpenVMS |
The following macro function has details that are specific to the OpenVMS operating environment:
returns the character-string value of the OpenVMS symbol that you specified as the argument. The syntax of this function is
%SYSGET(OpenVMS-symbol-name); |
You can use %SYSGET to translate either local or global OpenVMS symbols. If the symbol that you specify does not exist, SAS prints a warning message in the log.
Example: Using the %SYSGET Function |
The following example writes square brackets ([] ) to the SAS log.
Issue the following command to define a global symbol, HERE, to be [] :
$ HERE == "[]"
Invoke SAS, using the invocation command that is used at your site (usually $ SAS ).
In your SAS session, assign the value of the %SYSGET function to the macro variable VAR1, using the symbol HERE as the argument.
%let var1=%sysget(here); %put &var1;
Copyright © 2009 by SAS Institute Inc., Cary, NC, USA. All rights reserved.