Rational Programming Patterns for System z

The Design View of a Program

The Design View displays the design of the generated instance whose code is currently displayed with the PDP COBOL editor, and selected. You can modify this design in the view and generate the instance again in order to take these modifications into account.

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.
The design elements are constituted of the attributes and resources of the instance. You can modify them:
  • Directly in this view, by overwriting the values displayed in the Value column. If you change a value here, it automatically modifies the corresponding field in the editor and the COBOL code.

    When you update an instance (a Data Structure, a Macro...) called in the design, the editor of the modified instance opens up in the background of the editor area with an asterisk (the symbol which shows that the instance has been modified). An editor opens for each updated instance. You must explicitly save each instance.

    Note: If the field has a limited list of values, a drop-down list shows with all the values you can select.
  • In the corresponding tab of the editor, by right-clicking and selecting Open editor. Any modification performed in the editor is automatically reflected in the view and in the COBOL code.
  • In the COBOL code viewed through the PDP COBOL editor. Any modification in the design lines of the COBOL code is automatically taken into account in the view and the editor.

Description of the view

The Design View shows a hierarchical view of the design elements.

Note: The possible values of the fields displayed in this view are listed and explained in the help associated with the corresponding tab of the editor. Under each hierarchical level, links point to this help.

The Keywords category is shown only if at least one keyword has been indicated in the Keywords tab of the instance. In the view, you can only change the names of the keywords which have already been entered. To add keywords, you must open the editor by right-clicking anywhere in the view and selecting Open editor. You can then be able to add keywords in the Keywords tab.

The Attributes category contains the same information as the Definition tab of the instance. You can modify the values in the view, or in the editor. To open the editor, right-click anywhere in the view, except on a called instance line, and select Open editor.

The other tree categories represent the Program resources:
  • Input files, Output files, Input/Output files, Reports represent the external resources of the Program. These categories contain the same information as the -CD Lines tab.
  • Working files and Working data represent the internal resources called in the Working-Storage Section.
  • Macros displays the same information as the -CP Lines tab.

The pop-up menu and toolbar

The Design View contains a pop-up menu whose choices apply to the resources. Their order reflects the order of the resources in the hierarchy. This menu always contains:
  • Open editor. This choice opens the editor of the generated instance or the editor of the instance called in the design.
    Example: If you select this choice from the first level of the hierarchy (Working data, Keywords...), the editor of the generated instance (Program or Screen) opens up. However selecting this choice from an instance nested within a call line (a Data Structure, a Segment...) opens this instance editor.
  • Delete, which deletes the hierarchical level currently selected.

The Design View also contains a toolbar from which you can Generate the code and trigger the reconciliation (generate code and trigger reconciliation) after you have updated the design of your Program or Screen. The newly generated code integrates 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 design is consistent.

The possible values of the Program Attributes are explained in the link which points to the Program Definition tab.


Terms of use | Feedback

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