SYSABEND Statement Example


Scenario1 - Writing dump to spool.

Code -

----+----1----+----2----+----3----+----4----+----5----+
//TESTJOB JOB ...
//STEP1 EXEC PGM=PROG1
//SYSABEND 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
//SYSABEND DD DSN=MATEPK.SYSABEND.PS,DISP=SHR
//SYSOUT DD SYSOUT=*
//SYSIN DD *
...