Modifying DD Statements for Batch or TSO/E Processing

TERM=TS, when added to a DD statement defining an input or an output data set, is ignored in the batch processing environment, but under TSO/E indicates to the system that the unit to which I/O is being addressed is a time sharing terminal. Therefore, if you want a job to run in either the foreground or the background, provide a DD statement as follows:

//DD1     DD     TERM=TS,SYSOUT=A

In this example the output device is defined as a terminal under TSO/E processing, and as the SYSOUT device during batch processing. For a complete description of the TERM=TS parameter, see z/OS MVS JCL Reference.