Store index in some other variable?
Posted: Tue Oct 13, 2015 2:28 pm
Hi,
Can index be stored in some other variable? The question was like, assume we have a table like this:
Now can we get INDX1 into some other variable?
I'm not sure if we can do that?
Can index be stored in some other variable? The question was like, assume we have a table like this:
Code: Select all
01 SOME-VARIABLE-1 PIC X(36).
05 SOME-VARIABLE--2 REDEFINES STRING-1 PIC X(1) OCCURS 36 TIMES
INDEXED BY INDX1.
SEARCH STRING-2 WHEN SOME-VARIABLE-2 (INDX1) = TEMP(i:1)
SET INDX1 UP BY 1. I'm not sure if we can do that?