Previous Topic: DC388069Next Topic: DC388071


DC388070

OCCURS DEPENDING ON FIELD MUST BE THE LAST FIELD DEFINED IN A RECORD ASSOCIATED WITH A MAP

Reason:

When a variable length record is defined as an external file record to a file map that is a record with an OCCURS DEPENDING ON clause included in its definition, mapping requires that the variable length field be the last field in the record. (This does not mean that the field may not have subordinate elements defined to it.) The map must be deleted from the dictionary, and the record must be corrected. For example

03 FIELD1 PIC 99.
03 FIELD2 OCCURS 10 TIMES DEPENDING ON FIELD1.
   05  SUB-FIELD21 PIC X(10).
   05  SUB-FIELD22 PIC 9999.

(No more 03 levels (or less) are allowed to follow FIELD-2.)

Module:

RHDCMPMF

Severity:

0