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. It enables you to create a derived instance which will not contain any design but only a link to a referenced instance you specify in the <Entity to derive> field. From this derived instance, you will be able to generate the referenced 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 Dialogs (for the generation of the error messages). In the derived instance, you will then be able to generate the code of the referenced instance from a different library, without duplicating the instance's design.
    • Source inheritance, which enables you to generate the referenced Program or Screen which includes specific code ; the Cobol source (i.e. the generated code and the specific code) of the referenced instance becomes the generated code in the derived instance. You can then add specific code to it. In turn, the derived instance can become the referenced 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)