SYSGET Function: UNIX

Returns the value of the specified operating environment variable.
Category: Special
UNIX specifics: environment-variable is a UNIX environment variable
See: SYSGET Function in SAS Functions and CALL Routines: Reference

Syntax

SYSGET('environment-variable')

Required Argument

environment-variable
is the name of a UNIX environment variable.

Details

The SYSGET function returns the value of an environment variable as a character string. For example, this statement returns the value of the HOME environment variable:
here=sysget('HOME');