SYSOUT specification - Key = '0018'

DALSYSOU specifies that a system output data set is to be allocated and defines the output class of the data set. When you code this key and want a class other than the default, # and LEN must be one, and PARM contains the output class. To use the default output class, code zero in the # field; LEN and PARM are not specified. The default output class is determined as follows:
  • From the OUTPUT DD statement, if present
  • From the default message class, if there is no OUTPUT DD statement.
DALSYSOU is mutually exclusive with the following text unit keys:
  • DALSTATS, DALNDISP and DALCDISP
  • DALVLSER, DALPRIVT, DALVLSEQ, DALVLCNT, and DALVLRDS
  • DALQNAME
  • DALSSNM, DALSSPRM, and DALSSATT
Note: Using DALSYSOU with any of these keys will cause dynamic allocation to issue an error code 0380.
Example: To specify a SYSOUT data set in class A, code:
KEY   #     LEN   PARM
0018  0001  0001  C1
Example: To specify a SYSOUT data set and to default the class, code:
KEY   #     LEN  PARM
0018  0000  -    -