New Segment wizard

This wizard is used to create an instance of Segment, Logical View or Table entity. You must specify the name and label of the new instance, the project where it is to be saved.

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.

Segment type
Select the type of entity that you want to be created: Segment, Logical View, or Table.

To be managed correctly, a Segment must have the same type as the Data Structure that it is attached to. For Table-type Segments, the management of the historical account and of the century is selected at the Data Structure level.

Name
Enter the name of the new Segment, Logical View, or Table. It represents a logical code that is internal to the database. Therefore, it is independent of the names that are used in Database Blocks and Programs. It is constituted of two parts.
  • The first part is constituted of two alphanumeric characters that correspond to the associated Data Structure. If the Data Structure does not exist, it is automatically created in the project of the new Segment and it calls the Segment in its -LS Lines. If the Data Structure exists in a parent project in the hierarchy of the design build path, it is automatically duplicated in the project of the new Segment and it calls the Segment in its -LS Lines. If the Data Structure exists in a child project in the hierarchy of the design build path, it is not modified in this project and is created in the project of the new Segment. It calls the Segment in its -LS Lines in the project of the new Segment.
  • The second part is constituted of two characters that correspond to the record code. The first character must be numeric. The second character can be numeric or alphabetic. It can be alphabetic only if the first character is not zero. The record code of Segments and Tables has the following specificities:
    • For Segments, the record code can take on two types of values:
      • A record code 00 represents the common part of the records in a file or a database. By default, it is located at the beginning of each record. The control break sort keys, the record type, and the keys of indexed files must belong to this Segment. A file does not necessarily have a common part. A file that contains only one type of record must be declared as a Segment 00.
      • A record code 01 – 99 or 1A – 9Z represents the specific part of the records. The Data Elements of the common part are automatically concatenated with the Data Elements of each Segment from the specific part.
    • For Tables, the record code 00 is not valid.
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.

Feedback