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.
To add an external resource, you must:
- 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.
- Then adding a resource depends on your selection in the left area
of the -CD Lines tab.
- If no resource is displayed or if you want to insert a new CD
line, click the Add CD Line... button. The following
selection box opens up:
You can either call a Data Structure
or a Report.
- If the Data Structure or the Report you want to call is displayed in the
selection list, just click on its corresponding checkbox.
Note: By default,
the Data Structure is inserted as a sequential input file with fixed-length
records. The Data Structure Call Definition will contain
all of the Data Structure Segments, with the Data Elements in internal format,
without the optional Data Elements.
- If you need to call a Data Structure or a Report which does not exist
yet, just click on the New Data Structure or New
Report button. In the creation wizard which opens up, enter the
name and label and click OK. The new Data Structure
or Report is then displayed in the selection list. If you select it and click OK,
it will be called in the -CD Lines.
- If you want to insert a Data Structure or a Report in an existing
-CD line in order to specify a composite Data Structure or Report, select
the -CD line (on the first level of the structure tree) in the left area and
click the Add Data Structure or 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, just click
on the New Data Structure or New Report button.
In the creation wizard which opens up, enter the name and label and click OK.
The new Data Structure or Report is then displayed in the selection list.
If you select it and click OK, it will be called in
the -CD Lines.
- If the appropriate -CD line and:
- Data Structure have already been inserted but if you want to insert a
new Segment, select the Data Structure level or a Segment level and click
the Add Segment button. In the selection box which
opens up, unfold the Data Structure and check the Segment to be called before
clicking OK.
- Report have already been inserted but if you want to insert a new Report
in this -CD line, select the -CD line or the Report level and click the Add
Report button. In the selection box which opens up, check the
Report to be called before clicking OK.
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 Data Structure Definition Line 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, select a Data Structure call line and modify
the selection of the Data Structure Call Definition section.
From this section, you can also change the called Data Structure and access
the Data Structure tabs.
- To specify the Segment code in the Program, select a Segment call line
and enter its code in the Segment Call Definition section.
You can also access the Segment tabs
- To enter the characteristics of the Report called in the -CD Lines, select
a Report line and modify the default values displayed in the Report
Line Definition section.
- To change the suffix of a Report, click the Report call line. From this
section, you can also change the called Report and access the Report tabs.