Chapter Contents |
Previous |
Next |
SYSGET |
Category: | Special |
Syntax | |
Arguments | |
Details | |
Examples |
Syntax |
SYSGET(operating-environment-variable) |
Operating Environment Information: The term operating-environment-variable used in the description of this function refers to a name that represents a numeric, character, or logical value in the operating environment. Refer to the SAS documentation for your operating environment for details.
Details |
If the value of the operating environment variable is truncated or the variable is not defined in the operating environment, SYSGET displays a warning message in the SAS log.
Examples |
This example obtains the value of two environment variables in the UNIX environment:
data _null_; length result $200; input env_var $; result=sysget(trim(env_var)); put env_var= result=; datalines; USER PATH ;
Executing this DATA step for user ABCDEF displays these lines:
ENV_VAR=USER RESULT=abcdef ENV_VAR=PATH RESULT=path-for-abcdef
Chapter Contents |
Previous |
Next |
Top of Page |
Copyright 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.