New Data Structure wizard
Enter the fields of this wizard to create a Data Structure or the derived instance of a Data Structure.
- Project
- Select a project in the list or enter the name of the project where the instance is to be saved.
A project represents the physical distribution of your instances in your workspace. It groups directories and files. It is used to organize resources that can be built, shared, or versioned.
A Rational® Programming Patterns project contains a subset of files that correspond to the design and the generated sources of an application.
- Package
- A package corresponds to a logical group of information in a project.
If you are maintaining a Pacbase application, selecting a package is not advised. The instance override mechanism is then made easier because the overriding instance is always in the same package as the overridden instance. You do not need to manage the presence of both the instances in the same package, which is the requirement of an override.
- Data Structure Type
- Select the Data Structure type among the following types:
- Data Structure
- Logical View
- Pactables Table with historical account
- Pactables Table without historical account
- Pactables Table with historical account, with century
- Pactables Table without historical account, with century
The Data Structure type can be modified after the creation only among the Table types.
The management of the historical account and of the century that is selected at the Data Structure level will apply to all the Table-type Segments that will be created from this Data Structure.
- Name
- Its maximum length is two characters. It must be constituted of
alphabetic or numeric characters only.
If the Create a derived entity box is checked, you can use the whole length of the edit field. The name of the derived instance can start with the name of its reference instance. The name can also include the generation Library. If you do not enter a name and specify a reference instance in the <Entity> to derive field, the name is automatically initialized with the name of the reference instance.
- Label
- Enter the label that identifies the instance. It will constitute a search criterion upon a subsequent search.
- Open editor on finish
- Select this check box if you want to open the editor of the instance you are creating. The editor opens on the Overview tab. From there, you can access the other tabs to specify all the characteristics of the instance.
- Create a derived entity
- Select this check box if you want to create a derived entity instance
that points to a reference instance. The derived instance contains
a link to the reference instance and a link to a Library that contains
the generation parameters. From the derived instance, you can generate
the reference instance from a different Library, without duplicating
its design. The generation parameters of the derived instance Library
produce a COBOL source that is different from the source that is generated
from the reference instance Library.
If you select this box, the <Entity> to derive field is displayed. In the wizard, <Entity> is replaced by the actual entity (such as Program, Screen, or Data Structure). You must select the reference instance that contains the design for the derived instance.