Returns the current value of the specified DOS environment variable. You must either enclose the name of the environment variable in quotation marks or use a text variable to which you have assigned the environment variable.
First, assume you have the command below in your AUTOEXEC.BAT file.
SET workstat=10
Now, in R:BASE, you can use ENVVAL to find the value of that environment variable, as shown in the example below. The value of vworkstat will be the text value 10.