You can view the program code and modify it if necessary by entering
modifications directly in the COBOL code or by modifying the program's design
and generate the program again.
Once the program has been generated, to see the generated code:
- Select the generated .cbl file, located
in the Navigator view of the Design perspective
right under the corresponding pacprogram.
- Right-click on the .cbl file and select
Then the pdp COBOL system z LPEX editor displays the generated COBOL
in four different places:
- The editor part displays the .cbl file, that is
the COBOL output by the program generation. It is colored to show the origin
of the lines (generated lines, lines from called macros or specific code).
You can modify the COBOL there.
- The associated Generated Code Structure view, located
in the right bottom part of the workbench, displays the sections of your generated
program and its functions. This view cannot be modified.
- The Pac Design view displays the design elements
of the program, that is its internal and external resources. You can modify
the design directly in this view.
- The Outline view, located in the bottom right part
of the workbench, displays the program structure. You can filter its displays
but you cannot directly update it. It reflects the modifications performed
in the design or the COBOL code of the program whose COBOL editor is currently
open, after the program has been generated again.