JES prints on the same output listing the output from all sysout data sets for a job if the class, forms, FCB, UCS, and DEST parameters are the same and if an external writer is not specified. The installation can choose to print all sysout data sets that specify the same output class as the JOB statement MSGCLASS parameter on the same listing, even though the forms, FCB, UCS, and sometimes the DEST parameters are different.
//DD1 DD SYSOUT=(C,,FM34)
//DD2 DD SYSOUT=(C,,FM34)
The sysout data sets for DD1 and DD2 are written on the same output listing.
//JEX JOB ,'M. BIRDSALL',MSGCLASS=D
//ST1 EXEC PGM=WKRPT
//DDA DD SYSOUT=*
//DDB DD SYSOUT=D
The sysout data sets for DDA and DDB are written on the same output listing as the job log.