Segment Overview
The Overview tab displays the label in a read/write mode. It also displays information specific to the instance in a read-only mode and provides access to the other tabs of the instance.
Description of the tab
Three sections are not tabs. They are displayed in the Overview tab only: Alerts and Action Items, General information, and Generation parameters definition (on some entities).All the other sections provide links to the corresponding editor tabs.
If information is displayed in a section, you can do one of the
following actions:
- Click the information if it is displayed as a link. You automatically switch to where the information is specified.
- Click More to switch to the corresponding tab.
The sections of the tab
- Alerts and Action Items
- Any problem that is related to the current instance is displayed in this section as a link. If you click this link, you automatically switch to the Problems view, where the line that corresponds to the error is highlighted. The error is explained and you can correct it.
The General information section
displays the following fields:
- Work context
- The work context is the project from which you open the editor of the current instance. This
project constitutes the starting point for the resolution of the dynamic links and references
between the instances of the various projects. The projects hierarchy that is declared in the design
build path is explored in an upward direction.
If you click Hierarchy, you can see a partial view of the design build path. In this view, the project that constitutes the work context is the lowest project of the hierarchy.
For more information, see The work context and The design build path.
- Name
- The instance name is displayed in read-only mode. It is entered when the instance is created,
and it cannot be modified later.As a reminder, the name of a Segment, Logical View, or Table 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.
- For Segments, the record code can take on two types of values:
- Label
- Enter the label that identifies the instance. It will constitute a search criterion upon a subsequent search.
The Keywords section displays the keywords, if
any, that are already assigned to the instance.
The other sections are the following ones:
- The Definition section displays the information required to define a 00 Segment or a specific Segment. Clicking More in this section switches to the Definition tab where updates are possible.
- The -CE Lines section displays the Data Element call lines of the Segment. Clicking More in this section switches to the -CE Lines tab where updates are possible.
- The Level, Address and Length section displays information about the elements called in the Segment, such as their COBOL descriptions. You also find statistics on the current Segment. Clicking More in this section switches to the Level, Address and Length tab but no updates are possible in this tab.
- The SQL Complement section displays the description lines of entities called in a Segment used as a relational database. Clicking More in this section switches to the SQL Complement tab where updates are possible.
- The -G Lines section displays the comments, error messages, generation elements, generation options associated with the Segment. Clicking More in this section switches to the -G Lines tab where updates are possible.
- The Keywords section. Clicking More in this section switches to the Keywords tab where updates are possible.