Article ID: 177011
Article Last Modified on 4/5/2000
COUNT1
COUNT2
ARRAY1
ARRAY2
Count1 (integer)
Array1 (anything)
Count2 (integer)
Array2 (anything)
01 DFHCOMMAREA.
05 COUNT1 PIC S9(4) COMP. INOUT
05 ARRAY1 OCCURS 10 TIMES INOUT
DEPENDING ON COUNT1 OF DFHCOMMAREA
PIC S9(9) COMP.
05 COUNT2 PIC S9(4) COMP. INOUT
05 ARRAY2 OCCURS 10 TIMES INOUT
DEPENDING ON COUNT2 OF DFHCOMMAREA
PIC S9(9) COMP.
This COBOL produces the following error message when compiled on MVS:
115 IGYGR1137-S "OCCURS DEPENDING ON" object "COUNT2" was defined in a variably located area. Execution results will be unpredictable.
Additional query words: Customer Information Control System (CICS) Management (IMS)
Keywords: kberrmsg kbprogramming kbprb KB177011