2.102 GETENV

Valid for

Extract, Replicat

Description

Use GETENV to retrieve environment variables that were set with the SETENV parameter. The retrieved results can be used as input parameters for stored procedures or macros. The results are printed to screen and the Extract report file. Use one GETENV statement per variable to be retrieved. See ""GETENV"" for more information on the GETENV variables.

Default

None

Syntax

GETENV (environment_variable)
environment_variable

The name of the environment variable

Example

GETENV TRAIL1