This level contains the Data Elements called in the WORKING-STORAGE
SECTION of the instance. It shows the location of the Data
Element in the generated code, its format, and its corresponding data
name.
The Data Element call level
The first column
shows the Data Element name and the second
column shows its label. Both are preceded by
the location of the Data Element in the generated code (COBOL
position and Line number).
If
you expand this level, you can see the Data Element call Attributes and Description which
contain the following fields:
- 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.
The value you can
enter here changes according to whether it is a COBOL position
for a batch program or a transactional
program.
Table 1. Values of the COBOL
position for a batch programValue |
Meaning |
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 |
Table 2. Values of the COBOL position
for a transactional programValue |
Meaning |
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.
- 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
- 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).
The Data Element level
The Data Element
level is nested in the Data Element call level.
The first column
shows the Data Element name and the second
column shows its label.
If you expand
the Data Element level, you can see the Data Element name and label,
which are editable here.
Its Attributes level
contains the same information as the Definition tab,
except the inheritance which cannot be specified in the Design
View. The possible values of these Attributes are
explained in the link which points to the Data Element Definition tab.