Rational Programming Patterns for System z

Generated Code Structure view

The Generated Code Structure view displays a hierarchical tree showing the generated nodes of the Program or Screen. You can easily spot where specific code has been entered. Moreover, if you have modified the design of a Program or Screen which contains specific code, you must consult this view after each new generation. This view shows whether the reconciliation (which integrates the new design while keeping the specific code) has detected any potential problems.

To see the content of this view, you must have generated a program (Program, Screen, or Server). Then in the Design Explorer view, right-click the corresponding .cbl file, which contains the generated COBOL. Select Open with > PDP COBOL editor. The COBOL editor must remain open and currently selected.
Tip: You must be familiar with the concepts explained in Generating and modifying the COBOL of a Program, Screen, or Server.

For Pacbase, the nodes correspond to functions/subfunctions/sections/divisions.

In the hierarchical tree, you can see:
  • The generated code symbol if the text block representing the node is generated. These lines are gray.
  • The reformatted code symbol if the text block representing the node contains specific changes: if the generated code has been modified, if code has been added or deleted. These lines are black. A symbol specifies the type of specific change:
    • The modified code symbol is displayed where you have modified the text of the node and no error has been found by the reconciliation.
    • The added code symbol is displayed where you have added a block of text in the node or created a specific node.
    • The deleted code symbol is displayed where you have deleted the whole text of the node (if you have deleted only part of it, it is considered as a modification).
    Note: For each level in the tree where a change is tagged, you can:
    • keep the choices made by the reconciliation by right-clicking on the node and selecting Remove warnings.
    • overwrite the text modifications with the originally generated code by right-clicking on the node and selecting Restore generated code. The node is then displayed like a generated node. Its block text is gray, with a generated code symbol at the beginning.
You can modify the display of the view by:
  • Displaying only the nodes which represent specific code, and their upward hierarchy. To do so, click the show user code button in the toolbar.
  • Filtering nodes. To do so, type a name pattern in the Filters field of the view. To see the whole code again, erase the content of the field.
    Note: You can use the * and ? wildcard characters in the filter string. They are optional at the end of the filter string. You must separate multiple filter strings with commas.
  • Expanding or collapsing all the tree nodes. To do so, click expand all or collapse all in the view toolbar.

From this view, you can filter the text in the PDP COBOL editor and display or hide parts of the COBOL source.


Terms of use | Feedback

This information center is powered by Eclipse technology. (http://www.eclipse.org)