Rational Developer for System z, Version 7.5

Pac Design view

The Pac Design view displays the design elements of the program whose code is currently open with the Pattern Driven Programming editor, and selected. It enables you to view and modify the design of a generated program and to generate the program again in order to take these modifications into account.

With the Pac Design View, you can add, modify or delete the resources called in the program design, i.e. the Data Structures called in the -CD Lines and -W Lines tab, as well as the Macros called in the -CP Lines tab.
To see the content of this view, you must have generated a program. Then, in the Design explorer view of the Design perspective, right-click on the corresponding .cbl file, which contains the generated Cobol, and select Open with > Pdp Cobol System z LPEX Editor in the popup menu. The Cobol editor must remain open and currently selected.
Tip: You must be familiar with the concepts explained in Generating the Pac COBOL and modifying it: the various steps before reading this help.

The Pac Design View looks like this:

You can see that the Pac Design View is constituted of two columns:
  • The first column shows a hierarchical tree with the resource types on the first level (input files, output files, working files, working data and Macros) and the corresponding instances, down to the Data Elements, on the imbedded levels.
    • For a file or working data, the corresponding instances are Data Structures. For each Data Structure, you can see its code in program.
    • For working data, Data Elements can also be directly called, at the same level as Data Structures. Their names are then displayed in the first column. This also applies to the Data Elements called in Segments.
    • For a Segment:
      • If the Segment is called in a composite Data Structure, '00' is indicated if the Segment does not belong to the principal Data Structure. The other Segments of the composite Data Structure bear no information in the first column.
      • If the Segment is part of a simple Data Structure, its name is displayed here.
    • For Data Elements, the names are displayed.
  • The second column displays useful information on the instances:
    • For a Data Structure, the external name is displayed in the first position. If the Data Structure is called as an input file, the break level and the synchronization level are also displayed
    • For a Segment, the name (if it is not displayed in the first column) and label are displayed, separated by a dash.
    • For a Data Element, the label is displayed here.
    • Moreover, for the Data Structures and Data Elements called as working data, the COBOL position and line number are displayed between brackets.
If you right-click on the first level of the tree, various actions are available, according to the resource type. If you right-click on:
  • A file type, you can add a managed file. Selecting this choice opens a wizard which enables you to select a Data Structure. The selected Data Structure will then be inserted in the currently-selected file type.
  • The Working data level, you can either add a working Data Structure or add a Data Element.
  • The MacroStuctures level, you can either add a working Data Structure or add a Data Element.
If you expand the first level of the structure tree, you can see the called instances. If you right-click on them, you can delete them. Moreover, if you right-click on a:
  • File-type Data Structure, you can duplicate the file or add a Data Structure to the file. You can also modify the file parameters in a wizard which displays the same information as the '-CD Line Definition' section of the '-CD Lines' tab of the Program.
  • Working data, you can modify its call characteristics in a wizard which displays the same information as the
    • 'Data Structure Call' section of the '-W Lines' tab if you select a Data Structure,
    • 'Data Element Call' section of the '-W Lines' tab if you select a Data Element,
  • Macro, you can modify its call parameters in a wizard which displays the same information as the 'Macro call' section of the '-CP Lines' tab of the Program.
Moreover, the Pac Design view contains a toolbar which enables you to:
  • Open the design (open editor icon) of the current Program. This action opens the Program formatted editor, where you can see how the resources are called in the -CD Lines, -W Lines and -CP Lines tabs.
  • Generate the code and trigger the reconciliation (generate code and trigger reconciliation icon) after you have updated the Pac Design view of your Program. The newly-generated code will integrate the changes in the design, while keeping any specific changes entered in the code. This is called the reconciliation. This button can be activated only if the Program design is consistent.
  • Expand all (Expand all icon). This command expands every tree item in the Pac Design view.
  • Collapse all (Collapse all icon) This command collapses every tree item in the Pac Design view.
  • Save (save icon) your updates and all the instances involved in the Program design (the Program, Data Structures, Segments and Macros). You can activate this button, even if the design is inconsistent. Saving the design in the Pac Design view also saves the updates in the instances' editors, if these are open at the time of saving.
    Note: If you modify the Pac Design view, you can save it at any time, even if the design is erroneous, However, you cannot generate the program as long as it is not corrected.
Related tasks
Generating the Pac COBOL and modifying it: the various steps

Terms of use | Feedback

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