Set Environment Variable

? tab(-10, AG_SETENV);"<var>=<value>"; chr(127);

AG_SETENV (77) is used to set an environment variable.

Example

? TAB(-10,AG_SETENV);"APEX=%MIAME%\cache";chr(127);

This defines (or redefines) the environment variable APEX to equal the specified directory, after first expanding the environment variable MIAME. Note that the APEX environment variable determines where ATE puts the print files captured for local print or preview operations.

See MX_SETENV for setting an environment variable on the application server (as opposed to client) machine.