How To Use VM/SP Facilities To Debug
Abend
CP AbendOnce the problem and the area where it occurs are identified, you can gather
the information needed to determine the cause of the problem. The type of
information you want to look at varies with the type of problem. The tools
used to gather the information vary depending upon the area in which the prob
lem occurs. For example, if the problem is a loop condition, you will want to
examine thePSW. For a CP loop, you have to use the operator's console to
display thePSW, but for a virtual machine loop you can display the PSW via
theCP DISPLAY command.
The following sections describe specific debugging procedures for the various
error conditions. The procedures tell you what to do and what debug tool to
use. For example, the procedure may say dump storage using theCP DUMP command. The procedure does not tell you how to use the debug tool. Refer
to"An Overview of VM/SP Commands That Can Be Used for Debugging" and "CMS Debugging Commands" sections for a detailed description of each
debug tool, including how to invoke it.
Three types of abnormal terminations (ABEND) can occur onVM/SP: CP abends, CMS abends, or virtual machine abends. The following description
provides guidelines for debugging each type of ABEND.
When theVM/SP Control Program abnormally terminates, a dump is taken.
This dump can be directed to tape or printer, or dynamically allocated to a
direct access storage device. The output device for aCP abend dump is speci
fied by theCP SET DUMP command. See the "Abend Dumps" section for a
description of the SETDUMP command. Use the dump to determine why the control program terminated and then
determine how to correct the condition. See the"Reading CP Abend Dumps" discussion for detailed information on reading a CP abend dump. Reason for the Abend: CP will terminate and take an abnormal termination
dump under three conditions:
1.Program Check in CP Examine the PROPSW and INTPR fields in the prefix storage area (PSA) to determine the failing module.
2. Module Issuing an SVC0 Examine the SVC old PSW (SVCOPSW) and abend code (CPABEND) fields in the Prefix Storage Area to determine the module that issued the
SVC0 and the reason it was issued. CP ABEND contains an abnormal termination code. The first three charac
ters identify the failing module (for example, abend codeTRC001 indi
cates DMKTRC is the failing module).
Introduction to Debugging 475
Abend
CP Abend
the information needed to determine the cause of the problem. The type of
information you want to look at varies with the type of problem. The tools
used to gather the information vary depending upon the area in which the prob
lem occurs. For example, if the problem is a loop condition, you will want to
examine the
display the
the
The following sections describe specific debugging procedures for the various
error conditions. The procedures tell you what to do and what debug tool to
use. For example, the procedure may say dump storage using the
to
debug tool, including how to invoke it.
Three types of abnormal terminations (ABEND) can occur on
provides guidelines for debugging each type of ABEND.
When the
This dump can be directed to tape or printer, or dynamically allocated to a
direct access storage device. The output device for a
fied by the
description of the SET
determine how to correct the condition. See the
dump under three conditions:
1.
2. Module Issuing an SVC
SVC
ters identify the failing module (for example, abend code
cates DMKTRC is the failing module).
Introduction to Debugging 475