View previous topic :: View next topic
|
Author |
Message |
shrinivas_3 Warnings : 1 New User
Joined: 05 Sep 2006 Posts: 34
|
|
|
|
Hi all
I want to know the difference between below declaration of arrays.
01 WS-ARRAY.
10 WS-OFR-ID-AY-HST OCCURS 3 TIMES .
15 WS-OFFER-ID-ARRAY PIC x(10).
15 WS-BK-ID-ARRAY PIC X(5).
15 WS-LNK-ID-ARRAY PIC X(20).
AND
01 WS-ARRAY.
10 WS-OFFER-ID-ARRAY PIC x(10) OCCURS 3 TIMES
10 WS-BK-ID-ARRAY PIC x(5) OCCURS 3 TIMES
10 WS-LNK-ID-ARRAY PIC x(20) OCCURS 3 TIMES
IS the total memory required same?
any performance issue ?
thanks |
|
Back to top |
|
|
guptae
Moderator
Joined: 14 Oct 2005 Posts: 1208 Location: Bangalore,India
|
|
|
|
Toal memory required by both the declaration willbe the same...
BUt u have advantage of the first declaration ...
- In this u can relatiavely access the variable like... if WS-BK-ID-ARRAY = 1223 then u can access relative value of WS-LNK-ID-ARRAY ...
It is usefule if both r relative....
means... if we have two variable like empid & empname...
Correction r welcome |
|
Back to top |
|
|
|