In this tab, you indicate the composition of the instance.
You can add the following components:
- An internal Data Aggregate description.
- An internal Data description.
- An internal Data Union description to manage redefinitions. A
union description can include all the other component types of the Components tab.
- A Data Aggregate that is already defined.
- A Data that is already defined.
- A filler.
When you add a component other than a filler, the
Component
usage section opens. You can then indicate the characteristics
of this component call in the instance:
- Usage name: This field is available only
for a Data or Data Aggregate call. You specify this name to call the
same Data or Data Aggregate more than once in the instance and differentiate
these calls with their names.
- OCCURS FROM: Enter the minimum number of
repetitions in a table (OCCURS clause).
- OCCURS TO: Enter the maximum number of
repetitions in a table (OCCURS clause).
- OCCURS DEPENDING ON: This field is used
to generate the DEPENDING ON COBOL clause on a table
(OCCURS).
- OCCURS INDEXED BY: This field is used to
generate the INDEXED BY COBOL clause on a table (OCCURS).
- OCCURS SORT ORDER: This field is used to
generate the ASCENDING KEY IS or DESCENDING
KEY IS COBOL clause. You must enter the text of the clause
in full, for example ASCENDING KEY IS KEY1 (where KEY1 is
the key).
- Discriminant: Select this option if the
Data is an identification criterion of a redefinition. The Data must
then precede a union description.
- SQL: This group is available in the Data
and Data Aggregate calls. You use it to give additional information
for SQL.
- Primary key order: Indicate the order number
of the column in the table key.
- Is null: This field is used to generate
the NULL or NOT NULL SQL clause.
- Primary key: Select this option if the
called Data or Data Aggregate constitutes the primary key of the line
in the table.
For the internal descriptions, a section that is specific
to each description type also opens:
- For a Data Aggregate description, the Data Aggregate
description section opens. You can then enter the COBOL
alias and label of the description. If
this Data Aggregate description is included in a union description
(redefinition) and if the field that precedes the union description
is marked as a Discriminant, then you can specify
a value. When the discriminant field contains this value, this part
of the redefinition is considered to be active.
- For a Data description, the Data description section
opens. You can then enter the COBOL alias, label, picture,
and usage of the description.
- For a Union description, the Data Union description section
opens. You can then enter the label of the
description.
- For a filler, the Filler definition section
opens. You can then enter the filler length.