Purpose
Defines a variable as an environment variable in the DEFINE block. When the ENVVAR variable is referenced, Net.Data returns the current value of the environment variable by the same name.
Syntax
>>-%ENVVAR-----------------------------------------------------><
Context
The ENVVAR statement can be in the DEFINE block or statement.
Values
Restrictions
The ENVVAR statement can contain no other elements.
Examples
Example 1: In this example, ENVVAR defines a variable, which when referenced, returns the current value for the environment variable SERVER_SOFTWARE, the name of the Web server.
%DEFINE SERVER_SOFTWARE = %ENVVAR %HTML (REPORT){ The server is $(SERVER_SOFTWARE). %}