SYSUDUMP Statement
SYSUDUMP Statement Example
Scenario1 - Writing dump to spool.
Code -
----+----1----+----2----+----3----+----4----+----5----+
//TESTJOB JOB ...
//STEP1 EXEC PGM=PROG1
//SYSUDUMP 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
//SYSUDUMP DD DSN=MATEPK.SYSUDUMP.PS,
// UNIT=3390,
// VOLUME=SER=123456,SPACE=(CYL,(0,1)),
// DISP=(NEW,DELETE,KEEP)
//SYSOUT DD SYSOUT=*
//SYSIN DD *
...