Setting environment variables that affect execution
To set environment variables for z/OS® UNIX COBOL programs from a shell,
use the export
or set
command. To
set environment variables from within the program, call POSIX functions
setenv() or putenv().
About this task
For example, to set the environment variable MYFILE:
export MYFILE=/usr/mystuff/notes.txt
Example: setting and accessing environment variables