This JCL snippet shows how to write messages to the JES logs STDOUT and STDERR and read the environment variables from the HFS file '/u/ctgusr/stdenv.txt'.
//STDOUT DD SYSOUT=*
//STDERR DD SYSOUT=*
//STDENV DD PATH='/u/ctgusr/stdenv.txt',
// PATHOPTS=(ORDONLY),PATHMODE=SIRUSR
/*