FGETENV: Retrieving the Value of an Environment Variable

How to:

Available Languages: reporting

The FGETENV function retrieves the value of an environment variable and returns it as an alphanumeric string.

Syntax: How to Retrieve the Value of an Environment Variable

FGETENV(length, 'varname', outlen, output)

where:

length

Integer

Is the number of characters in the environment variable name.

varname

Alphanumeric

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

outlen

Integer

Is the length of the environment variable value returned or a field in which the environment variable value is stored.

output

Alphanumeric

Is the format of the field in which the environment variable's value is stored.