Although you corrected the error, you do not know exactly which table entry was at fault. To learn this you will need to know the current contents of STATE‑X, COUNTY‑X and DISTRICT‑X and their occurrences in the table.
CA InterTest for CICS displays the previous Source Listing Breakpoint screen.
The program code directly above the breakpoint line shows the values of COUNTY‑X and DISTRICT‑X. You also could page backward to see the value of STATE‑X. However, suppose this code was not there. How would you find the values of STATE‑X, COUNTY‑X and DISTRICT‑X? First, we will see how to display the contents of the variable STATE‑X.
CA InterTest for CICS V9.1 - PROTSYM FILE ABEND DETECTED BREAKPOINT COMMAND ===> Program= COBDEMO Option # Stmt # Margin= 01 Search= ------------------------------------------------------------------------------- _____ DISTRICT-POP(STATE-X COUNTY-X D | ?000. d____ STATE-X | .... _____ COUNTY-X | .... _____ DISTRICT-X | .... ---------+--------------------------------------------------------------------- _ 000655 SET COUNTY-X TO 3. . . .
CA InterTest for CICS displays the current contents of STATE‑X in dump format, as illustrated in the following figure. CA InterTest for CICS displays the values of indexes in dump format rather than structured format because indexes are not defined in a structure.
CA InterTest for CICS V9.1 - MAIN STORAGE UTILITY - Termid = U032 Offset Address Task + 0 00000000 * .... * 20309FC0 189 ------------------------------------------------------------------------------ PF1 Help 2 3 End 4 Return 5 6 Dump PF7 Backward 8 Forward 9 Caps Off 10 11 12 Structure CORE='STATE-X' CAIN4727 Data item is an index set to occurrence 1
STATE‑X has a value of hexadecimal zero.
The command CA InterTest for CICS generated is simply CORE='STATE‑X', as shown on the bottom of the previous figure. This confirms the dump display is showing you the main storage contents of STATE‑X, which is what you wanted.
The last line on the screen indicates STATE‑X is set to occurrence 1.
To see the contents of the remaining index variables, COUNTY‑X and DISTRICT‑X, you could return to the breakpoint display and repeat the request using the d and the cursor method. However, a quicker method is to modify the CORE command on the bottom of the screen. All you need to do is change the STATE‑X in the CORE command to COUNTY‑X.
CA InterTest for CICS displays the contents of COUNTY‑X in dump format and informs you that it is set to occurrence 3, as shown in the following screen. (Note the modified command.)
CA InterTest for CICS V9.1 - MAIN STORAGE UTILITY - Termid = U032 Offset Address Task + 0 0000001A * .... * 20309FC4 189 ------------------------------------------------------------------------------ PF1 Help 2 3 End 4 Return 5 6 Dump PF7 Backward 8 Forward 9 Caps Off 10 11 12 Structure CORE='COUNTY-X' CAIN4727 Data item is an index set to occurrence 3
CA InterTest for CICS displays the contents of DISTRICT‑X and informs you that it is set to occurrence 5. (Note the modified command.)
CA InterTest for CICS V9.1 - MAIN STORAGE UTILITY - Termid = U032 Offset Address Task + 0 00000008 * .... * 20309FC8 189 ------------------------------------------------------------------------------ PF1 Help 2 3 End 4 Return 5 6 Dump PF7 Backward 8 Forward 9 Caps Off 10 11 12 Structure CORE='DISTRICT-X' CAIN4727 Data item is an index set to occurrence 5
By displaying the contents of STATE‑X, COUNTY‑X, and DISTRICT‑X, you have determined that DISTRICT‑POP (1, 3, 5) is the exact position in the table of the invalid table item.
Now return to the breakpoint display.
The Source Listing Breakpoint screen redisplays.
The demo program resumes execution and returns you to the Options Menu.
|
Copyright © 2014 CA Technologies.
All rights reserved.
|
|