View previous topic :: View next topic
|
Author |
Message |
paresh-vartak
New User
Joined: 05 Jan 2007 Posts: 2 Location: mumbai
|
|
|
|
Hi,
I need to know the value of the index which I have used to define in the table.
The table defination is
01 PAYMENT-TABLE.
05 PAYMENT-ENTRY OCCURS 999 TIMES
INDEXED BY
PAYT-NDX.
To knoe the value of index I am moving it in dummy variable like this.
MOVE PAYT-NDX TO WS-DUMMY.
For this I am getting the following compilation error:
"PAYT-NDX" was defined as a type that was invalid in this context.
Let me know how I can check the value in the index. |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
Hello,
To "move" an array index, use SET instead of MOVE. |
|
Back to top |
|
|
William Thompson
Global Moderator
Joined: 18 Nov 2006 Posts: 3156 Location: Tucson AZ
|
|
|
|
What was the trick? Redefine a usage is index with a pic s9(9) comp or just set to the pic s9(9) comp? |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
Hello,
My guess is that the index in question is not defined as a field.
Usng the SET to a 9(9) COMP field should work as needed. . . . Haven't actually done it today, but seem to reacll doing it before |
|
Back to top |
|
|
|