In the Enterprise Server (ES) configuration, you enable JCL support by setting the
ES_SSTM_ssss environment variable to a fully qualified path to the JCL used to initialize the SSTM Environment. In the environment variable,
ssss is
CICS or
IMS depending on the environment that you want to initialise.
Note: The specified JCL job stream must contain only one step. A multiple step job is treated as an error and will fail SSTM initialization.
Note: Setting the SSTM is required for the CICS spooling facility. That is, if you want to use the CICS SPOOLOPEN OUTPUT, SPOOLWRITE, SPOOLCLOSE commands, etc.
Example settings
The following is an example JCL code for CICS. In the code:
- The program name in the
PGM=
entry must be syntactically correct, but it does not need to exist.
- The DD
OUTJCL is shared across CICS SEPs. The other DDs in the example are not shared, and are local to each SEP.
//SSTMJCL JOB 'CICS JOB',MSGCLASS=A
//CICS EXEC PGM=NOTUSED
//SYSOUT DD SYSOUT=*
//SYSPRINT DD SYSOUT=*
//TEMPJCL DD DSN=&&TEMPJCL,DISP=NEW
//OUTJCL DD DSN=CICS.SSTM.OUTJCL,DISP=(MOD,CATLG)
//INTRDR DD SYSOUT=(*,INTRDR)