Can you please correct me if i was wrong in the following declaring two dimension array.
10 W-NAME PIC X(10) OCCURS 10 TIMES
15 PRODUCT-NAME OCCURS 10 TIMES
20 W-PRODUCT-NAME PIC X(10)
20 W-QTY PIC S9(02)
W-NAME which is in level 10 is not coming under any group variable.
This is how i want the values to be stored
W-NAME(1) = 'Santhosh'
W-PRODUCT-NAME(1,1) = 'Shirts'
W-QTY(1,1) = 10
W-PRODUCT-NAME(1,2) = 'PANTS'
W-QTY(1,2) = 20
W-NAME(2) = 'ARUN'
W-PRODUCT-NAME(2,1) = 'Jeans'
W-QTY(2,1) = 3
W-NAME(3) = 'Charu'
W-PRODUCT-NAME(3,1) = 'Laptop'
W-QTY(3,1) = 6
W-PRODUCT-NAME(3,2) = 'Mobile'
W-QTY(3,2) = 2
W-PRODUCT-NAME(3,3) = 'Pen'
W-QTY(3,3) = 9
Whether the above declaration is correct? If wrong can you please provide me a correct declaration to serve the above need.
Thanks,
Santhosh Kumar