Example: nested program map
This example shows a map of nested procedures produced
by specifying the MAP
compiler option. Numbers in
parentheses refer to notes that follow the example.
Nested Program Map
Program Attribute codes (rightmost column) have the following meanings:
C = COMMON
I = INITIAL (1)
U = PROCEDURE DIVISION USING... (5)
Source Nesting Program
LineID Level Program Name from PROGRAM-ID paragraph Attributes
2 0 NESTMAIN. . . . . . . . . . . . . . . . . . . U
120 1 (4) SUBPRO1 . . . . . . . . . . . . . . . . . . I,C,U
(2)199 2 NESTED1 . . . . . . . . . . . . . . . . . I,C,U
253 1 SUBPRO2 . . . . . . . . . . . . . . . . . . U
335 2 NESTED2 . . . . . . . . . . . . . . . . . C,U
(3)
- (1)
- Explanations of the program attribute codes
- (2)
- Source line number where the program was defined
- (3)
- Depth of program nesting
- (4)
- Program-name
- (5)
- Program attribute codes