Rational Developer for System z, Version 7.5

Adding external resources to a Program

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:
  1. 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.
  2. Then adding a resource depends on your selection in the left area of the -CD Lines tab.
    1. 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.
    2. 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.
    3. 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:
Related reference
-CD Lines tab
Data Structure Line Definition
More -CD specifications
Data Structure call line
Segment Call Definition
Report Call Definition

Terms of use | Feedback

This information center is powered by Eclipse technology. (http://www.eclipse.org)