Rational Developer for System z, Version 7.6

Creating an instance

You create an instance from the Design explorer view of the Design perspective.

  1. In the Design explorer view, open a location (it must be represented by open location) and right-click on the location line, on an entity line or on an instance line to display a popup menu.
  2. In this menu, select New, and the entity for which you want to create an instance (ex: Pac Data Element or Pac Program). This choice opens a creation wizard.
  3. Fill in the fields of this wizard.
  4. In the Program, Screen, Data Structure and Dialog creation wizard, a Derive check box is also displayed. Selecting it displays two addional fields: Derivation type and <Entity to derive>. These fields enable you to create a derived instance. which will not contain any design but only a link to the reference instance you specify in the <Entity to derive> field. From this derived instance, you will be able to generate the reference instance without duplicating its design. You must select one of the two derivation types:
    • Library substitution, available on Programs, Screens, Data Structures (for the generation of the Copybooks and the error messages) and Dialogs (for the generation of the error messages). With this derivation type, you will use the derived instance to generate the reference instance from a different library, without duplicating its design. The generation parameters of the library indicated in the derived instance will output a Cobol source different from that generated from the library of the reference instance.
    • Source inheritance, available only on entities where specific code can be inserted: Programs and Screens. With this derivation type, you will use the derived instance to generate the reference Program or Screen. The complete source code (i.e. the generated code and the specific code) of the reference instance becomes the generated code in the derived instance and this generated code is then reconcilied with the specific code of the derived instance. In turn, the derived instance can also become the reference instance for a new derived instance and the same process applies
  5. If you select the Open editor on finish check box, the instance editor will then open up automatically on the Overview tab. From there, you will then be able to access the other tabs of the editor and specify all the characteristics of the instance.
  6. Click Finish.
Results
The new instance will then be displayed under the entity branch in the location, alphabetically sorted among the instances already present.

Terms of use | Feedback

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