The purpose of this tab is to modify the WORKING STORAGE and/or LINKAGE sections,
supplementing the descriptions obtained automatically. It will complement
the DATA DIVISION in the generated code.
This tab enables you to complement the standard processing of
the COBOL
DATA DIVISION by adding::
- Information in the WORKING STORAGE Section,
- Sections at the end of the DATA DIVISION.
The line beginning determines the location where this customized
information will be generated:
- at the beginning of the WORKING STORAGE Section if the
line beginning is alphabetic,
- at the end of the DATA DIVISION if the line beginning
is numeric.
In the
'-W Lines' tab, you can:
- Insert comments,
- Call Data Elements in the desired format
- Call Data Structures and Segments,
- Generate the indexes used in a table search (with the SCH (Search)
operator). This is done by specifying a Table size (which
generates an OCCURS clause) value to the Data Structure -
Segment.
Recommendation
The 'CD Lines' tab
of the Pac Program entity defines resources that are external to the program
(file, databases, etc.), whereas the '-W Lines' tab
groups the work and link areas.
This way, they can be organized easily.
If you call a Data Structure in the '-W Lines' tab,
you cannot specify all the information (such as file matching, generation
information...) you can specify in the 'CD Lines' tab.
Description of the tab
The -W Lines tab
displays lines, if any, which call Data Elements, Data Structures, comments...
It looks like this:

It is constituted of three different
parts:
- On the left, an area with a tree which represents the -W lines already
inserted. Each line begins with the icon representing the inserted element.
Next to the icon, you can see the two characters of the COBOL position,
and the three characters which represent the line number of
the called element. Then, after a comma, the information varies according
to the inserted element. On a line which calls a.
- Comment (
icon), you can see the text of the inserted comment and, in parentheses,
the occurs number.
- Data Element (
icon), you can see the Data Element name.
- Data Structure (
icon), you can see the Data Structure code
in program. And then, in parentheses, you can see the Segments
(the last two characters of the Segment names) if Segments
have been specified for this Data Structure call, or you can see all
segments if no Segment has been specified.
- Data Structure call, if you unfold the call line, there may be one or
more Segments (
icon). If no Segment has been selected, all the Segments are selected
by default and they are not displayed here.
- In the center part, buttons which enable you to add -W lines, remove existing
ones or move them up/down.
- On the right, sections which open up depending on your selection in the
tree. If you select a:
- Comment, the Comment section opens up.
- Data Element, the Data Element Call opens up. From
there, you can access the Data Element editor tabs, and you can also change
the Data Element while keeping all the information already entered for the
call.
- Data Structure, the Data Structure Call opens up.
From there, you can access the Data Structure editor tabs, and you can also
change the Data Structure while keeping all the information already entered
for the call.
- Segment, the Segment Call opens up, where you indicate
the Segment code in the Program and from where you
can access the Segment editor tabs.