COMPARE statement SNAPs

When a DL/I call does not produce the results you expect, you can use the COMPARE statement to compare the actual results of a call with the expected results. The normal output of this statement usually provides enough information to determine what is causing the problem.

When the output from a COMPARE statement does not provide enough information, you can use the SNAP option of the COMPARE statement to obtain additional diagnostic information. Specifically, the I/O buffer pool and the DL/I blocks are dumped. You can use the generated diagnostic output, in conjunction with IMS Version 15.4 Messages and Codes, Volume 3: IMSAbend Codes to determine the cause of the user abend you are diagnosing.

Attention: The COMPARE SNAP statement is a call to DL/I. Therefore, when a SNAP option is issued, some data in the captured area might be changed as a result. To prevent inadvertent change to data that is not involved in the problem, use a COMPARE SNAP statement only for the specific data that is involved in the problem.

Some control blocks are always dumped. Others are dumped only when you request them in the SNAP options.

The following control blocks are always dumped:

The following SNAP option requests dump the control blocks or buffers listed: