Accessing environment variable status at any point in the code: $Show

Top  Previous  Next

One may look at environment variable values by displaying them or by creating a simple program that displays them using an echo command and then using a $call to invoke it.

Examples:

(environvar.gms)

* Display current values of the system environment variables like the PATH variable

display '%sysenv.PATH%'

 

*display environment varialbe in log file

 

*first set up a simple command processor

$onechoV > xx.cmd

echo  the path is %path%

echo  the os is %os%

$offecho

 

*now run it

$call xx.cmd