To add external resources, i.e. files represented by Data
Structures or Reports, you must specify their logical and physical
characteristics as well as the way they are to be used in the Program.
- Open the -CD Lines tab of a Program.
To do so, select a Program in the Design explorer view
of the Design perspective and double-click on
it or select Open in the popup menu. Then access
its -CD Lines tab from the Overview tab
or directly by clicking the -CD Lines tab.
- Insert a CD line by clicking the Add CD Line... button.
The following selection box opens up:
In
this selection box, you can check one or more Data Structures and/or
Reports. If the Data Strcture or Report you want to call:
- Is displayed in the selection box, just click on its corresponding
checkbox and click OK.
Note: By default, a
Data Structure is inserted as a sequential file with fixed-length
records ; it contains all of the Data Structure records, with the
Data Elements in internal format, without the optional Data Elements.
- does not exist yet, just click the New Data Structure or New
Report button. In the creation wizard which opens up,
enter its name and label and
click OK. The new instance is then displayed
in the selection list. If you select it and click OK,
it will be called on a -CD Line.
- Complement the -CD line if necessary. To insert a:
- Data Structure in an existing Data Structure -CD line
in order to specify a composite Data Structure, select this -CD line
on the first level of the tree, or a Data Structure call line nested
under the -CD line (on the second level of the tree). Click the Add
Data Structure button. In the selection
box which opens up:
- Check the instance you want to call in the Program and click OK.
- Or, if you need to call an instance which does not exist yet,
click the New Data Structure button. In the
creation wizard which opens up, enter its name and label and
click OK. The new Data Structure will then
be displayed in the selection list. If you select it and click OK,
it will be called in the selected -CD Lines.
- Report in an existing Report -CD line in order to specify
a composite Report, select this -CD line on the first level of the
tree, or a Report call line nested under the -CD line (on the second
level of the tree). Click the Add Report button. In the selection box which opens up:
- Check the instance you want to call in the Program and click OK.
- Or, if you need to call an instance which does not exist yet,
click the New Report button. In the creation
wizard which opens up, enter its name and label and
click OK. The new Report will then be displayed
in the selection list. If you select it and click OK,
it will be called in the selected -CD Lines.
- Segment in a Data Structure already called in the Program,
select this Data Structure call line or a Segment call line and click
the Add Segment button. In
the selection box which opens up:
- Check the instance you want to call in the Program and click OK.
- Or, if you need to call an instance which does not exist yet,
click the New Segment button. In the creation
wizard which opens up, enter its name and label and
click OK. The new Segment will then be displayed
in the selection list. If you select it and click OK,
it will be nested in the selected Data Structure call line.
What to do next
After the -CD Lines have been inserted, you can modify their
default characteristics in the sections which automatically open up
on the right-side of the tab, depending on the selection in the left
area:
- To change a Data Structure code in program, external
name, organization, describe its usage...,
you must select a Data Structure CD line and modify the values displayed
in the -CD Line Definition (Data Structure) section.
Do not forget to click the More... button to
access more specifications which are not displayed directly in the
section.
- To specify whether all of the Data Structure Segments are to be
called in the CD line, you must select a Data Structure call line
and modify the selection in the Data Structure Call section.
From this section, you can also change the called Data Structure and
access the Data Structure tabs.
- To specify the Segment code in program,
you must select a Segment call line and enter this code in the Segment
Call section. You can also access the Segment tabs
- To enter the characteristics of the Report called in the -CD Lines,
you must select a Report line and modify the default values displayed
in the -CD Line Definition (Report) section.
- To change the suffix of a Report, you must
click the Report call line and enter this suffix in the Report
Call section. From this section, you can also change the
called Report and access the Report tabs.