To facilitate the maintenance of large programs, you can
use filters to display only part of the code. The navigation in the
text of the PDP editor
is then made easier.
By default, thePDP COBOL
editor creates four blocks that correspond to the four divisions of
a COBOL program. These blocks are expanded upon the editor opening.
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 possible,
whatever the facet:
- The action Show only selected elements displays
only the code that corresponds to the selected nodes in the Generated
Code Structure view.
- The action Hide generated code displays
the specific code only. It also displays the Macros in the Pacbase facet.
- The action Hide specific code displays
the generated code only. It also displays the Macros in the Pacbase facet.
- The action Show whole text displays the
whole code in the editor and disables any way to collapse it.
Moreover, the following actions are possible in the
Pacbase facet 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 and Pacbase Macros displays
the generated code only.
- 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 the titles of the Pacbase functions (level
05).
- The action Show only titles of Functions hides
all the code except the titles of the four COBOL divisions and the
titles of the Pacbase functions
(level 05).
You can also change the display of the
PDP editor from its contextual
menu. To do so, right-click in the editor and select one of the following
choices:
- Expand all blocks,
- Collapse all blocks.