Using an OCCURS DEPENDING ON Clause

If your COBOL copybook contains an OCCURS DEPENDING ON clause, your application will be able to send and receive tables with a varying number of rows to a transaction on the host.

When Task Builder uses a COBOL copybook with an OCCURS DEPENDING ON clause to create a task, that task will be capable of passing tabular data dynamically. The number of rows in the table will be based on the value of the "depending on" field. This field is referred to as the ODO object.

When you are identifying task input fields in Task Builder, you will see the ODO object field labeled as follows:

field_name (ODO object)

The field (for single-column, or elementary, tables) or fields in the dynamic table are referred to as ODO subject fields. Because the table structure requires the value of the object field, within Task Builder you must add both the object and subject field as input to (or output from) your task.

Related Topics
Bullet Task Builder for IMS Help Links
Bullet About COBOL Copybooks
Bullet Creating a Task Definition
Bullet Properties of Input and Output Fields
  Attachmate