To display the contents of this section, you must select
a Data Element call in the tree or click Add Data Element.
You must specify where this Data Element is to be located in the generated
program, its format, and its corresponding data name. From here, you
can also access the Data Element editor tabs.
- Data Element
- The called Data Element is displayed here. You can change it by
clicking Change. The values already entered
in the call Definition are kept and automatically apply to the new
Data Element.
- COBOL position
- You indicate the placement and the sequence in which the lines
entered in this tab are to 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.
Table 1. Values for the COBOL positionValue |
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. These lines are generated: - Before the description of the 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 the 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 for automatically generated
data. |
99 |
With a Line number = 999,
this value is used for the PROCEDURE DIVISION statement.
Therefore, you can use it to create a line with a sequencing number 99999,
which replaces the PROCEDURE DIVISION line automatically
generated. |
$n |
This value represents a parameterized value
in a Macro. |
- Line number
- This line number, constituted of three digits, is concatenated
with the two characters of the COBOL position.
The line number can be:
- 0 to 999: It is
advised to number the lines, starting with 10, by intervals of 10,
to facilitate any future insertion
- $n0 to $n9: In a
Macro, only the first two characters of the Line number can be parameterized.
- Line type
- Select which format is to be used for the Data Element call:
- E: Input format,
- I: Internal format,
- S: Output format.
- Text before
- This field is divided into two subfields:
- Text after
- In this field, you must enter the characters which are to be inserted
in the generated code, after the data name. Most often, you enter
a period ('.') but you can also enter other values (for example: 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) repeats several times. You enter the
maximum number of occurrences. This value is numeric, on five characters
maximum.
An entry in this field causes the generation of the following
three indexes (
ddss = Segment code):
- IddssM initialized to the value entered.
- IddssL initialized to zero. This index can be
used to load the table. It keeps track of the actual table size
- IddssR initialized to zero. This index can 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.