Environment Variables
Environment variables are used to specify the execution environment
for a process. Under OpenEdition, environment variables can be
assigned in a number of ways:
- For processes running under the shell, these variables can be assigned
using /etc/profile or the user's .profile file at logon time. The ENV
environment variable can be used at other times.
- For Language Environment programs started from MVS, the ENVAR
run-time option can be used. The _CEE_ENVFILE environment variable
can be used to load environment variable settings from an HFS file
or a DD statement. For example,
PARM='ENVAR(_CEE_ENVFILE=DD:ENVVARS)/&PARMS'
loads environment variable settings from DD statement ENVVARS.
- With BPXBATCH, the STDENV DD statement can be used. This can point
to either an MVS dataset or an HFS file.
- The env shell command can be used to invoke a program from the shell
and pass environment variable settings to it.
Language Environment Runtime Options
_CEE_RUNOPTS can be used to pass Language Environment runtime options
to a program started from the OMVS shell.
_CEEDUMP_DIR can be used to control where Language Environment CEEDUMP
reports are stored. Otherwise, they will be stored in the current working
directory if the current user has write access and it is not the HFS root (/).
Otherwise, it will go to the temporary file directory, usually /tmp.
Time Zones
The TZ (Posix) or _TZ (non-Posix) environment variable is used to set
time zone. If this is not set, UTC (formerly UTC) time may be provided.
For More Information
Visit the Language Environment or
OpenEdition page here.
Refer to the publications
- OS/390 C/C++ Programming Guide
- OS/390: Language Environment for OS/390 & VM Programming Guide
- OS/390 UNIX System Services Command Reference