I-REC record layout for a workfile. The thing is I’m moving records from the workfile(I-REC) to the #REC continuously.
Each time want to check if the #F1 ( #INDEX) EQ #F1(#INDEX-1)
I.E I want to check the previous record in the array with the current record and perform some processing.
The problem now is since the record is defined as (a124),how do I access the array as a group of 25 occurences.
When I use
IF #REC-GP.#F1(#INDEX) EQ #REC-GP.#F2(#INDEX - 1)
It throws me an error.
Is there any problem with my redefine ? Pls clarify.
So please check, if you really need two dimensions.
If no, drop one dimension and everything should be OK.
If yes, you have to address #REC-GP.#F1 like this
IF #REC-GP.#F1(#INDEX, #index2) EQ #REC-GP.#F2(#INDEX - 1, #index2)
I need only a single dimension. I need 25 occurences of (A124) structure .
And I need to compare the first occurence(first record) #F1 to the second occurence(second record) #F1.How do I accomplish it?
am getting the error
Index entry incorrectly specified for field.
As #f1 is not defined as an array.
But when I change #F1 as an array of 25 occurences,the total necessity for a group of becomes meaningless.