Previous Page | Next Page

Functions and CALL Routines under OpenVMS

SYSGET Function: 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

Syntax
Details
Example
See Also

Syntax

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.


Details

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.


Example

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]


See Also

Previous Page | Next Page | Top of Page