Functions and CALL Routines under OpenVMS |
Returns the value of a specified operating-environment variable.
Category: |
Special
|
OpenVMS specifics: |
operating-environment-variable is the name of a DCL symbol
|
See: |
SYSGET Function in
SAS Language Reference: Dictionary
|
SYSGET("operating-environment-variable")
|
-
"operating-environment-variable"
-
is the name of a DCL symbol. The value for operating-environment-variable must be enclosed in double quotation
marks.
The specified DCL symbol must be defined
in OpenVMS before it is referenced
in the SYSGET function. You can specify the symbol in a number of ways, such
as in a DCL COM file or at the DCL prompt before you invoke a SAS session.
You cannot define a symbol either by using the SAS X command while you are
in a SAS session or by using a logical name in OpenVMS.
If the value of the symbol is truncated, or if the symbol
is not defined under OpenVMS, then
SYSGET displays a warning message in the SAS log.
This example defines two symbols in the OpenVMS environment:
$ PATH="QC:[GOMEZ.TESTING]"
$ USER="[GOMEZ.MYTESTS]"
data _null_;
length result2 result3 $ 40;
SYMBOL2="PATH";
SYMBOL3="USER";
result2=sysget(trim(symbol2));
result3=sysget(trim(symbol3));
put result2= result3=;
run;
and then returns their values:
RESULT2=QC:[GOMEZ.TESTING]
RESULT3=[GOMEZ.MYTESTS]
Copyright © 2009 by SAS Institute Inc., Cary, NC, USA. All rights reserved.