I am getting a warning message when compiling a program. It does not seem to affect the execution of my program, but I would like to get clean compile if possible. The section of working storage that is tripping up is here:
05 OUTPUT-PARAMETERS.
07 RESULT PIC X(80).
07 DYELOT-COUNT PIC 9(03).
07 EA-FT-UOM PIC X(03).
07 EA-FT-QTY-TOTAL PIC X(15).
07 SF-SY-UOM PIC X(03).
07 SF-SY-QTY-TOTAL PIC X(15).
07 DYELOT-RECORDS OCCURS 1 TO MAX-DYELOT-RECORDS
DEPENDING ON DYELOT-COUNT.
09 DYE-LOT PIC X(12).
09 D-EA-FT-QTY-TOTAL PIC X(15).
09 D-SF-SY-QTY-TOTAL PIC X(15).
09 ROLL-COUNT PIC 9(03).
09 ROLL-RECORDS OCCURS MAX-ROLL-RECORDS.
11 ROLL-NUMBER PIC X(06).
11 EA-FT-QTY PIC X(10).
11 SF-SY-QTY PIC X(10).
11 LAST-MEASURE PIC X(10).
09 ROLL-RECORDS--COUNT PIC 9(03).
07 DYELOT-RECORDS--COUNT PIC 9(03).
I am getting this warning when compiling the program:
BisStockPgm.s, line 116: Warning: OCCURS DEPENDING must be last in group: DYELOT-RECORDS--COUNT
What could be causing that warning, and should I fix or ignore it?




