GETENV: Retrieving the Value of an Environment Variable

How to:

The GETENV function takes the name of an environment variable and returns its value as a variable length alphanumeric value.

Syntax: How to Retrieve the Value of an Environment Variable

GETENV(var_name)

where:

var_name

fixed length alphanumeric

Is the name of the environment variable whose value is being retrieved.

Example: Retrieving the Value of an Environment Variable

The following request retrieves the value of the WebFOCUS Reporting Server variable EDAEXTSEC.

-SET &E1 = GETENV('EDAEXTSEC');
-TYPE &E1

The value returned is ON if the WebFOCUS Reporting Server was started with security on or OFF if the WebFOCUS Reporting Server was started with security off.