Displaying the Working-Storage Section of a COBOL program in the Monitor window
You can add all of the variables in the Working-Storage Section
of a COBOL program to the Monitor window by doing the following steps:
- Move the cursor to the command line.
- Type in the following command:
MONITOR LIST TITLED WSS;
- Press Enter. z/OS® Debugger assigns the WSS entry a reference number between 1 and 99, adds the WSS entry to the Monitor window, and displays the current values of all of the variables in the Working-Storage Section.
Every time z/OS Debugger receives control or you enter a z/OS Debugger command that can effect the display, z/OS Debugger updates the value of each variable in the Monitor window so that z/OS Debugger always displays the current value.
Because the Working-Storage Section can contain many variables, monitoring the Working-Storage Section can add a substantial amount of overhead and use more storage.
Refer to the following topics for more information related to the material discussed in this topic.