Add Items to the Watch Data View
You can add keywords, memory expressions, or variables from COBOL, Assembler, or PL/I program listings to the Watch Data view.
Add Variables from the Outline View to the Watch Data View
Follow these steps:
-
Select Window, Show Views, Outline to display the Outline view.
-
Highlight an active program listing in the Program Listing area. The Outline view refreshes to show the contents of the program listing.
-
Expand a label in the Outline view.
The Outline view displays the list of items under the selected label. -
Select the variable that you want to add to the Watch Data view in the Outline view.
-
Right-click and select Add to Watch Data.
The Watch Data view refreshes to display the new variable.
Note: If you have selected a PL/I-based variable then the PL/I Locator Qualifier Selection dialog opens prompting you to enter the locator qualifier. For more information, see Specify PL/I Locator Qualifiers for based Variables.
Add Variables from the Program Listing Area to the Watch Data View
Follow these steps:
-
Locate and select the variable in the Program Listing area.
-
Right-click and select Add to Watch Data.
The Watch Data view refreshes to display the new variable.
Note: If you have selected a PL/I-based variable then the PL/I Locator Qualifier Selection dialog opens prompting you to enter the locator qualifier. For more information, see Specify PL/I Locator Qualifiers for based Variables.
Add Keywords from the Memory Expression Builder
Follow these steps:
-
Click the Memory Expression Builder icon in the Watch Data view.
The Memory Expression Builder dialog opens. -
Select a keyword from the drop-down list in the Keyword field and click OK.
The Watch Data view refreshes to display the new keyword.Note: If the keyword has an associated DSECT, then the DSECT will be posted in the same way as a variable is posted in the Watch Data view. If there is no DSECT, then the keyword will be posted as an expression.
Add Expressions from the Memory Dump Dialog
Follow these steps:
-
Click the Memory Expression Builder icon in the Watch Data view.
The Memory Expression Builder dialog opens. -
Fetch memory values using one of the following methods:
-
Use the Base address/offset.
-
Type a hand-coded expression.
-
Build an expression using the Memory Expression Builder.
-
Select a variable from the drop-down list.
The retrieved memory values are populated to the Memory Expression Builder dialog. This action invokes the Post Request button.
-
-
Click Post Request.
The Post Request dialog opens. -
Type a name for the expression, and click OK to post it to the Watch Data view.
-
Click OK to exit the Memory Dump dialog.
The Watch Data view refreshes to display the new expression.