Chapter Contents

Previous

Next
SYSGET

SYSGET



Returns the value of a specified operating-environment variable or symbol

Language element: function
Category: special
OpenVMS specifics: operating-environment-variable is the name of a DCL symbol


Syntax
Details
Example
See Also

Syntax

SYSGET("operating-environment-variable")

"operating-environment-variable"
specifies the name of a DCL symbol under OpenVMS. 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


Chapter Contents

Previous

Next

Top of Page

Copyright 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.