Rational Programming Patterns

Creating an instance

You create an instance from the Design Explorer view.

Procedure

  1. In the Design Explorer view, open a location (it must be represented by open location) and right-click the location line, on an entity line or on an instance line.
  2. Select New, and the entity for which you want to create an instance (for example: Data Element or Program). This choice opens a creation wizard. To create a Logical View or Table, select New > Segment and in the creation wizard, select Logical View or Table in the Segment type field.
  3. Enter the fields of this wizard.
  4. In the Program, Screen, Server, Data Structure, Dialog, and Server Dialog creation wizard, a Derive check box is also displayed. Selecting it displays two additional fields: Derivation type and <Entity to derive>. With these fields, you can create a derived instance which does 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 can then generate the reference instance without duplicating its design. You must select one of the two derivation types:
    • Design derivation, available on Programs, Screens, Servers, Data Structures (for the generation of the Copybooks and the error messages), Dialogs, and Server Dialogs. With this derivation type, you 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 produce a COBOL source different from that source generated from the Library of the reference instance.
    • Source derivation, available only on entities where specific code can be inserted: Programs, Screens, and Servers. With this derivation type, you use the derived instance to generate the reference entity. The complete source code (the generated code and the specific code) of the reference instance becomes the generated code in the derived instance. This generated code is then reconciled 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 automatically opens on the Overview tab. From there, you can access the other tabs of the editor and specify all the characteristics of the instance.
  6. Click Finish.

Results

The new instance is then 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)