%PATHCODE values for COBOL
The table below shows the possible values for the z/OS® Debugger variable %PATHCODE
when
the current programming language is COBOL.
–1 | z/OS Debugger is not in control as the result of a path or attention situation. |
0 | Attention function (not
ATTENTION condition). |
1 | A block has been entered. |
2 | A block is about to be exited. |
3 | Control has reached a label coded in the program (a paragraph name or section name). |
4 | Control is being transferred as a result of a CALL
or INVOKE . The invoked routine's parameters, if any, have been prepared. |
5 | Control is returning from a CALL or
INVOKE . If GPR 15 contains a return code, it has already been stored. |
6 | Some logic contained by an inline PERFORM is about
to be executed. (Out-of-line PERFORM ranges must start with a paragraph or section
name, and are identified by %PATHCODE = 3 .) |
7 | The logic following an IF...THEN is about to be
executed. |
8 | The logic following an ELSE is about to be
executed. |
9 | The logic following a WHEN within an
EVALUATE is about to be executed. |
10 | The logic following a WHEN OTHER within an
EVALUATE is about to be executed. |
11 | The logic following a WHEN within a
SEARCH is about to be executed. |
12 | The logic following an AT END within a
SEARCH is about to be executed. |
13 | The logic following the end of one of the following structures is
about to be executed:
|
14 | Control is about to return from a declarative procedure such as
USE AFTER ERROR . (Declarative procedures must start with section names, and are
identified by %PATHCODE = 3 .) |
15 | The logic associated with one of the following phrases is about to
be run:
|
16 | The logic following the end of a statement containing one of the
following phrases is about to be run:
|
Note: Values in the range 3–16 can be assigned to
%PATHCODE
only
if your program was compiled with an option supporting path hooks.Refer to the following topics for more information related to the material discussed in this topic.