<< back to sysax.com Product page

9.1. Reading environmental variables

The getenvvar command is used to access the values of environmental variables. The user variable receives the value of the specified environmental variable string. Refer to the section on command line script parameters for a method to create and set program specific environmental variables from the command line.

The syntax is

Exhibit 9.1. table title

getenvvar <user variable>, <environment variable string>;

An example is

Exhibit 9.2. table title

getenvvar ~os_variable, "OS"; #get the value of the environmental variable OS