Previous Topic: DC384104Next Topic: DC384106


DC384105

OCCURS DEPENDING ON MUST BE LAST FIELD IN EXTERNAL RECORD.

Reason:

The variable length field in the external record must be the last field in the record, and as such may not be subordinate to any other OCCURS clause. For example, the following data structure is not allowed for a file map:

03  FLD1    PIC  99.
03  FLD2    OCCURS 5 TIMES.
    05  FLD3  PIC X OCCURS 3 TIMES DEPENDING ON
        FLD1.

Neither is this structure allowed:

03  FLD1    PIC  99.
03  FLD2    PIC X OCCURS 4 TIMES DEPENDING ON
                   FLD1.
03  FLD3    PIC XXXXXX.

Delete the map and correct the record using IDD.

Module:

RHDCMPDB

Severity:

0