ENVVAR Statement

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

%ENVVAR
The keyword for defining a variable as an environment variable in a DEFINE block. This variable gets the value of an environment variable anywhere in the macro.

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).
%}


[ Top of Page | Previous Page | Next Page | Index ]