Adding external resources to a Program

External resources are files that are represented by Data Structures or Reports. To add external resources in a Program, you must specify their logical and physical characteristics and the way they are to be used in the Program.

Procedure

  1. Open the -CD Lines tab of a Program.
  2. Click Add CD Line. A selection wizard opens then.
  3. In this wizard, you can select one or more Data Structures or Reports, or both. If the list is large, you can reduce it by entering a string as a filter. The filter applies to the code or on the label of the instance.
    • If the Data Structure or Report you want to call is displayed in the selection wizard, click its corresponding check box 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.
    • To create a Data Structure or Report, click New Data Structure or New Report. In the creation wizard, 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 is called in the -CD Lines tab.
  4. Complement the -CD line if necessary.
    Note: The actions that can be performed with the buttons are also available in the contextual menu of the tree.
    1. To insert a Data Structure in an existing Data Structure -CD line to specify a composite Data Structure, select this -CD line or a Data Structure call line that is nested under the -CD line. Click Add Data Structure. :

      In the selection wizard that opens, select the instance that you want to call in the Program and click OK.

      If the instance does not exist yet, click the New Data Structure. In the creation wizard, enter its name and label and click OK. The new Data Structure is then displayed in the selection list. If you select it and click OK, it is nested under the selected -CD line.

    2. To insert a Report in an existing Report -CD line to specify a composite Report, select this -CD line on the first level of the tree, or a Report call line that is nested under the -CD line (on the second level of the tree). Click Add Report.

      In the selection wizard that opens, select the instance that you want to call in the Program and click OK.

      If the instance does not exist yet, click the New Report. In the creation wizard, enter its name and label and click OK. The new Report is then displayed in the selection list. If you select it and click OK, it is nested under the selected -CD line.

    3. To insert a Segment in a Data Structure that is already called in the Program, select this Data Structure call line or a Segment call line and click Add Segment.

      In the selection wizard that opens, select the instance that you want to call in the Program and click OK.

      If the instance does not exist yet, click the New Segment. In the creation wizard that opens, enter its name and label and click OK. The new Segment is then displayed in the selection list. If you select it and click OK, it is nested under 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 that automatically open, depending on your selection:

Feedback