Printing dumps

Db2 supports IPCS under z/OS®. It is recommended to use IPCS for versatility to print dumps.

The Db2 dump formatter routine, DSNWDPRD, is invoked by IPCS with:

DB2 VERBEXIT DSNWDMP

The following sample contains JCL for printing and formatting a dump through IPCS. These JCL samples illustrate the appropriate parameters for formatting SVC, stand-alone, and dynamic dumps. The DSNWDMP control statement that is shown in the examples causes the Db2 dump formatter (DSNWDPRD) to be invoked and defines the Db2 control block structures to be formatted.

The JCL included here contains only the DD statements that are recommended for Db2. Your site might choose to include other DD statements as well.

Figure 1. Sample JCL for printing dumps through IPCS in the z/OS environment. The format of the JOB statement is defined by the site.
  //PRDMP00  JOB 1,'PRINT SYS1.DUMP00'
  //**********************************************
  //*   IPCS  INVOCATION AS 'VERB EXIT'          *
  //**********************************************
  //DB2DMP   EXEC  PGM=IKJEFT01,REGION=5120K
  //SYSTSPRT DD    SYSOUT=*
  //SYSABEND DD    SYSOUT=*
  //IPCSPRNT DD    SYSOUT=*
  //IPCSDDIR DD    DSN=dump.directry-name,DISP=OLD
  //DUMP00   DD    DSN=SYS1.DUMP00,DISP=SHR
  //SYSTSIN  DD    *
    IPCS NOPARM TASKLIB('DB2 Load Library')
    SETDEF PRINT TERMINAL DDNAME(DUMP00) NOCONFIRM
    VERBEXIT DAEDATA
    STATUS   SYSTEM CPU REGS
    VERBEXIT CPUDATA
    VERBEXIT CVTMAP    VERBEXIT LOGDATA
    VERBEXIT TRACE
    VERBEXIT GRSTRACE
    SUMMARY  JOBSUMMARY FORMAT ALL
    VERBEXIT SUMDUMP
    VERBEXIT DSNWDMP 'TT,ALL'
  //*
  //*   For printing stand-alone and dynamic dumps,
  //*   the DSNWDMP statement should also include
  //*   SUBSYS=DB2_subsystem_name, for example:
  //*   VERBEXIT DSNWDMP 'TT,ALL,SUMDUMP=NO,
  //*   SUBSYS=DB2_subsystem_name'
  //*
    CLOSE    ALL
  END
The DSNWDMP statement can be changed to print SVC, stand-alone, or
dynamic dumps.