If you have purchased the PL/I Symbolic Option and are currently stopped at a breakpoint, use CORE to view storage associated with a symbolic PL/I program. The PL/I Symbolic CORE facilities work just like the COBOL Symbolic facilities of CORE, with the following differences:
CORE='symbolname'
This command checks to see if the symbol is a label. If it is, the machine code at that location is displayed. If it is not, the definition of the symbol in the most recently activated procedure or block is used to display the current value of the symbol.
Note: The most recently activated block, containing a definition of the symbol, need not be the currently executing block.
CORE='blockname:symbolname'
CORE='blockname:name1.name2.name3'
This command checks to see if the symbol is a label in the qualifying block. If the named block is active, the definition of the symbol in that block is used to display the current value of the symbol. If it is not, the blockname is checked to verify that it is on the active block chain.
CORE='symbolname1 >symbolname2'
This command displays variables listed as based (*) in the PL/I Cross Reference, where:
CORE='name1.name2(name3,name4)'
Display array item indicated by the resolution of variables name1 and name2. Up to 15 levels of qualification and subscripting are supported.
CORE='name1.name2'
CORE='blockname:symbolname'
Example
See this sample in the following examples.
PROC1: ...;
DCL 1 A,
2 FIELDB ...,
3 FIELDC ...;
SUBPROC: ...;
DCL 1 A,
2 FIELDB ...,
3 FIELDC ...;
END SUBPROC;
To display the variable FIELDB declared in PROC1, enter:
CORE='PROC1:FIELDB'
To display the variable FIELDB declared in SUBPROC, enter:
CORE='SUBPROC:FIELDB'
See the following sample for the next example.
DCL Q PTR; DCL R PTR; DCL Z BASED(Q);
To display Z using R as the pointer, code the CORE command as follows:
CORE='R >Z'
|
Copyright © 2014 CA Technologies.
All rights reserved.
|
|