To display the contents of this section, you must select
a Data Element call in the tree or click the Add Data Element button. In this section, you must specify where this Data
Element will be located in the generated program, its format and its
corresponding data-name. This section also gives you access to the
Data Element editor tabs.
- Data Element
- The called Data Element is displayed here. You can change it by
clicking the Change... button. The values already
entered in the call Definition are kept and automatically apply to
the new Data Element.
- COBOL position
- This field enables you to indicate the placement and the sequence
in which the lines entered in this tab will be generated. These characters
form the first two characters of a sequencing number, with the value
in the line number as the last three digits.
Value |
Meaning |
For a batch
program |
AA to ZZ and 0A to 0Z |
These values cause the lines entered in this
tab to be generated at the beginning of the WORKING STORAGE Section.
Relatively to the Data Structures called in the -CD
Lines tab, these lines will be generated as follows: - Before the description of Data Structures whose organization is W:
file description in Working and whose code
in program matches this prefix or is greater than it,
- Before the description of Data Structures whose organization is L:
Working with placement, and whose COBOL position matches
this prefix or is greater than it.
|
00 to 09, 1A to 19... 9A to 99 |
The lines entered in this tab will be generated
in the WORKING STORAGE Section, after all the Data
Structures whose COBOL position is lower than
this prefix |
For a transactional
program |
AA to 0Z |
The description is generated in the WORKING
STORAGE Section. |
00 to 99 |
The description is generated in the LINKAGE Section. |
AA and 00 |
These values are used by the system for automatically-generated
data. |
99 |
With a Line number = 999,
this value is used by the system for the PROCEDURE DIVISION statement.
Therefore, you may use it to create a line with a sequencing number 99999,
which will replace the PROCEDURE DIVISION line which
is automatically generated. |
$n |
This represents a parameterized value in a
Macro-Structure |
- Line number
- This line number, constituted of three digits, will be concatenated
with the two characters of the COBOL position.
The line number can be:
- 0 to 999: As a recommendation,
you should number the lines, starting with 10, by intervals of 10,
to facilitate any future insertion
- $n0 to $n9: In a
Macro-Structure, only the first two characters of the Line number
can be parameterized.
- Line type
- Here you must select which format will be used for the Data Element
call:
- E: Input format,
- I: Internal format,
- S: Output format.
- Text before
- This field is divided into two sub-fields:
- The 'Level or Section', constituted of the first 17 positions
of the field, In this sub-field, you must enter the COBOL level number
(01, 05...) or the Section
name (LINKAGE SECTION,...) in which this line
will be generated.
- The 'Work area declaration', which starts from position 18, to
the end of the field. You must declare the beginning of the data-name,
which will be concatenated with the Data Element code to constitute
the actual data-name.
So you must enter
w-ddss- (without
omitting the dashes), where:
- w = Working-storage prefix (alpha or numeric),
- dd = Data Structure code, including the
work area,
- ss = Segment code,
Once concatenated with the Data Element code, the data name
will be:
w-ddss-eeeeee (with
eeeeee as
the Data Element code).
Note: When a Data Element existing in the
Repository is called in a work and link area, you must enter the beginning
of the data-name in this field. Otherwise, the generated code will
be formatted: 03 DDSS-DELCO PICTURE X.
- Text after
- In this field, you must enter the characters which will be inserted
in the generated code, after the data-name. Most often, you just enter
a period ('.') but you can also enter other values (ex: 'VALUE
SPACE').
- Occurs
- You must indicate a number in this field when the data-name (entered
in the Comment field if you are viewing a comment
call, or in the Text before field if you are
viewing a Data Element call) is occursed. You enter here the maximum
number of occurrences. This is a numeric field, on 5 characters maximum.
An entry in this field causes the generation of the following
three indices (
ddss = Segment code):
- IddssM initialized to the value entered.
- IddssL initialized to zero. This index may be
used to load the table. It keeps track of the actual table size
- IddssR initialized to zero. This index may be
used for table searches.
In a Macro, you can parameterize it by assigning it a $n value
If you click the buttons in the bottom part of the section,
you open the corresponding Data Element tabs: