Rational Developer for System z, Version 7.6

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.

About this task
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. Insert a CD line by clicking the Add CD Line... button. The following selection box opens up:Selection of a Data Structure and/or a Report
    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.
  3. Complement the -CD line if necessary. To insert a:
    1. 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.
    2. 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.
    3. 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:

Terms of use | Feedback

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