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

GETENV retrieves the value of the server variable EDAEXTSEC.

GETENV('EDAEXTSEC')

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

WebFOCUS

Feedback