Chapter Contents

Previous

Next
SYSGET

SYSGET



Returns the value of a specified host-environment variable

OS/390 specifics: host-variable


Syntax
Details
Example
See Also

Syntax

SYSGET (host-variable)

host-variable
is the name of one of the parameters defined in the CLIST by which SAS was invoked


Details

If the variable specified was not included in the SAS invocation, you receive a "NOTE: Invalid argument to the function SYSGET" and _ERROR_ is set to 1.


Example

The following example returns the system options specified in the OPTIONS parameter of the SAS CLIST and prints to the specified log.

data _null_;
  opstr=sysget('OPTIONS');
  if _ERROR_ then put 'no options supplied';
  else put 'options supplied are:' optstr;
run;

See Also


Chapter Contents

Previous

Next

Top of Page

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