Typically, your program queries the value of these operating system variables for the location of files used for command interpretation, run-time messages, and locale settings.
Some variables support locales:
Variables can specify the location of executable files and DLLs:
Other variables have specific uses in your program:
These variables support heap debugging:
Two environment variables support the ITRACE class, which provides run-time tracing for the Open Class Library:
If a required variable is not set properly, your program may not run as expected, may fail to find a file, or may find and use an unintended file.
Some application run-time environment variables do not affect programs linked to the IBM C and C++ Compilers subsystem run-time library.
![]()
Set Windows Run-Time
Environment Variables
Set OS/2 Run-Time
Environment Variables
![]()
Environment
Variables for Debugging
LOCPATH
Environment Variable
Locale
Category Environment Variables
NLSPATH
Environment Variable
DPATH OS/2 Environment
Variable
LIBPATH OS/2
Environment Variable
PATH
Environment Variable
TEMPMEM Environment
Variable
TMP
Environment Variable
TZ
Environment Variable