Consider the following scenario:
CA 2E 8.7.3 to 8.7.4
In the generator program, the result indicator was incorrectly reused during duplicate detection in the *Date Lists array. This caused the indicator to become unsynchronized with the Result value used by %LOOKUP, leading to inconsistent date calculations. When the *DATE INCREMENT logic processed negative day increments in the RP4 runtime environment, the mismatched indicator caused invalid array indexing, resulting in the “array index out of range” error.
Open a support case and request PTF "Y287427843".