View previous topic :: View next topic
|
Author |
Message |
nal_satish
New User
Joined: 20 Jun 2005 Posts: 26 Location: Hyderabad
|
|
|
|
Hi ,
Regarding INDEX variable used in occurs clause
05 Var1 occurs 5 times indexed by N
06 var2 pic x(2) ----------> First
05 Var3 occurs 5 times
06 Var4 pic x(2) ----------->Second
Can the INDEX variable declared In First can be used in the Second Declaration
can it be used if picture clause is Different ????
Can some one help me out regarding this |
|
Back to top |
|
|
ikumar
New User
Joined: 02 Aug 2005 Posts: 81
|
|
|
|
I think, you can use this index N to index another table only if
1) if the number of elements are same from both the tables.
2) If the variables/elements have the same length.
If you have same length i think picture clause might not be a problem. like, instead of x(2) u can have 9(2)...But not sure....have to check it out....
Correct me if i m wrong... |
|
Back to top |
|
|
|