<< back to sysax.com Product page

15.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.

Exhibit 15.1. Syntax of command for reading environmental variables

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

Exhibit 15.2. Example for using the command for reading environmental variables

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