In order to facilitate the maintenance of large COBOL programs,
a system of filters can be used to display only part of the COBOL
source and thus make easier navigation in the text of the PDP COBOL editor.
By default, the PDP COBOL
editor creates four blocks corresponding to the four divisions of
a COBOL program. These blocks are expanded at the opening of the editor.
Filter activation
You can activate the
filters from the contextual menu of the Generated Code Structure view,
by right-clicking and selecting Filter text in PDP editor.
The
following actions are then possible:
- The action Show only selected elements displays
in the editor only the code corresponding to selected nodes in the Generated
Code Structure view.
- The action Hide generated code displays
the specific code and the Macros only.
- The action Hide generated code and Pacbase Macros displays
the specific code only.
- The action Hide Pacbase Macros displays
the generated code and the specific code only.
- The action Hide specific code displays
the generated code and the Macros only.
- The action Hide specific code and Pacbase Macros displays
the generated code only.
- The action Show whole text displays all
the code in the editor and disable any way to collapse, there is no
more
or
.
- The action Default folding resets the default
folding (four parts corresponding to the four COBOL divisions) with
the blocks expanded.
- The action Show only titles of Data Structures (level
01) and Functions hides all the code except the titles
of the four COBOL divisions, the first line of each Data Structure
definition (level 01) and titles of Pacbase functions (level
05).
- The action Show only titles of Functions hides
all the code except the titles of the four COBOL divisions and titles
of Pacbase functions
(level 05).
You can also change the view in the
PDP COBOL editor from its
contextual menu:
- Unfold all the blocks by right-clicking and selecting Expand
all blocks.
- Collapse all blocks by right-clicking and selecting Collapse
all blocks.