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, an entity line, or an instance line.
  2. Select New, and the entity that you want to create an instance from (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 Create a derived entity check box is available. Selecting it displays an <Entity to derive> field, where you must enter a reference instance. You can then create a derived instance. This instance will not contain any design. It will include a link to the reference instance and a link to the Library that contains the generation parameters.

    Derivation is available on Programs, Screens, Servers, Data Structures (for the generation of the Copybooks and the error messages), Dialogs, and Server Dialogs. You use the derived instance to generate the reference instance from a different Library, without duplicating its design. The generation parameters of the derived instance Library produce a COBOL source different from the source that is generated from the reference instance Library.

  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.

Feedback