IBM Books

Net.Data Reference Guide

ENVVAR Statement

Purpose

The ENVVAR statement references environment variables in a DEFINE block. Using this method to reference environment variables is more efficient that using DTW_GETENV. For more information, see DTW_GETENV.

Syntax

>>-%envvar-----------------------------------------------------><
 

Context

%DEFINE block or statement.

Parameters

%envvar

The keyword for specifying environment variables in a DEFINE block, which get the value of an environment variable anywhere in the macro.

Restrictions

Can contain no other elements.

Examples

Example 1: In this example, %ENVVAR returns the 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 | Table of Contents | Index ]