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 Transaction Studio uses a COBOL copybook with an OCCURS DEPENDING ON clause to create a service definition, that service definition is capable of passing tabular data dynamically. The number of rows in the table is based on the value of the "depending on" field. This field is referred to as the ODO object.

When you are identifying input fields, 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 Transaction Studio, you must add both the object and subject field as input to (or output from) service definition.

Related Topics
Bullet What are COBOL Copybooks?
Bullet How to Handle COBOL Data Division Entries
Bullet Using Elementary Item Input and Output Properties