Chapter Contents

Previous

Next
SET=

SET=



Defines an environment variable

Default: none
Valid in: configuration file, SAS invocation, OPTIONS statement, OPTIONS window
CMS specifics: all


Syntax
Details
See Also

Syntax

SET='<group>variable=value'

group
specifies an optional logical group of CMS environment variables. The default group is SAS.

variable
specifies the name of the CMS environment variable.

value
specifies the value of the CMS environment variable.


Details

Environment variables for CMS SAS are saved in the GLOBALV SAS group. The duration of the CMS environment variables that are set by SAS depends on the next IPL.

The following example assigns a CMS environment variable to the GLOBALV MYGROUP group, executes an X statement to set a second environment variable in the same group and uses SYSGET functions to fetch the values:

options set='mygroup myvar=myvalue';
x 'globalv select mygroup set var2 xstatement';

data _null_;
   x=sysget('mygroup myvar');
   put x=;
   y="%sysget(mygroup var2)";
   put y=;
run;
The SAS log shows:
x=myvalue
y=XSTATEMENT

See Also


Chapter Contents

Previous

Next

Top of Page

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