SYSMDUMP Statement Example


Scenario1 - Writing dump to spool.

Code -

----+----1----+----2----+----3----+----4----+----5----+
//TESTJOB JOB ...
//STEP1    EXEC PGM=PROG1
//SYSMDUMP DD SYSOUT=*
//SYSOUT   DD SYSOUT=*
//SYSIN DD *
...

Scenario2 - Writing dump into a dataset.

Code -

----+----1----+----2----+----3----+----4----+----5----+
//TESTJOB JOB ...
//STEP1    EXEC PGM=PROG1
//SYSMDUMP DD DSN=MATEPK.SYSMDUMP.PS,
//            UNIT=3390,
//            VOLUME=SER=123456,SPACE=(CYL,(0,1)),
//            DISP=(NEW,DELETE,KEEP)
//SYSOUT   DD SYSOUT=*
//SYSIN DD *
...