Rational Developer for System z, Version 7.6

Group definition

To display the content of the Group definition section, you must select a group call in the list of called Elements. A group is a set of elementary Data Elements. In the Group definition section, you indicate the name and label of the group, and other options to define such as occurs, sort and redefines (optional). Don't forget to click More for a complete definition of the group. You can also define or modify the -G lines of the group from this section.

You can call a Data element group, which is a set of Data elements named Elementary data elements. You can add up to 99 elementary data elements to a group, on 9 different levels maximum. A group may include other groups. All elementary Elements are then counted to define the group. A group may also include one or more Segments. Each Segment called in a group is considered as an Elementary data element. The group Data element can be defined at the Repository level. If so, its length is automatically recalculated (sum of the lengths of the elementary data elements) regardless of its Repository format. If the group is used as a key (sort key or access key), then its format combined with the elementary data elements' must be still compatible with the format you have indicated for the group. When you create a group, it does not contain any elementary data element, it is empty, you need to add the data elements in the group then.

Name
Enter the code of the group. The code you enter here is free, but cannot exceed six characters. You may change the group code or label at any moment, after the group is created.
Label
Enter a label of the group you have created. The label you enter here is free but cannot exceed 36 characters. You may change the group label at any moment, after the group is created.
Occurs
Enter an occurs number in this field to generate an OCCURS COBOL clause. The COBOL restrictions on the OCCURS clause also apply here. You can indicate an occurs number on an elementary or a group Data Element or a Filler. The occurs number is limited to 99 , it is pure numeric field.
Sort key
This field identifies all data elements that might be used as control break sort keys, or as access keys to a file, a database or a Pactables table.

Note: It is highly recommended to dedicate a Segment to only one type of use. Each data element that may belong to a sort key must be referenced by a unique alphabetic or numeric character. It is recommended to reference the indicators by a series (1, 2, 3 ...). The actual sort sequence will be chosen at the program level (on the Call of Data Structures (-CD) screen) by sequencing the characters in the appropriate order.
Don't forget that the format of key group data elements must have been entered in the Dictionary or at the segment level.
Value Comments
U References the access key for a VisualAge Pacbase table. This value must be indicated on the group data element if it is a group key.
S Indicates that the data element belongs to at least one sub-system.
Values Comments
U References a unique key for an DL/1 database.
M References a multiple key for an DL/1 database.
1 to 9 Secondary index All other values designate a search field.
Values Comments
0 to 9 AS400 physical file key. Relational databases
V Variable length column
Blank Fixed length column
W For DB2 SQL, SQL/DS and ORACLE, generation of a variable length column (VARCHAR).
L For DB2 SQL, SQL/DS and ORACLE, generation of a LONG VARCHAR.
Note: Sort keys are not allowed on data elements redefining other data elements.
Redefines
The Data Element containing this option redefines the Data Element of the same COBOL level which precedes it in the Segment description. If a Data Element which redefines another Data Element is contained in a group, it is considered to be an elementary Data Element. It must be taken into account in the calculation of the number of Data Elements contained in a group (except for DL1 database Segments).

More

Click the More... button to open a wizard in which you indicate the presence check values for the Segment called in the Segment.

-G Lines

Click the -G Lines... button to define -GC lines, -GE lines, and -GG lines for the Segment called in the Segment.


Terms of use | Feedback

This information center is powered by Eclipse technology. (http://www.eclipse.org)