snehatechm


{ City } pune
< Country > india
* Profession * technical associate
User No # 53123
Total Questions Posted # 4
Total Answers Posted # 17

Total Answers Posted for My Questions # 19
Total Views for My Questions # 48966

Users Marked my Answers as Correct # 168
Users Marked my Answers as Wrong # 50
Answers / { snehatechm }

Question { CTS, 22986 }

If i initialize the 01 level variable in array, will it
initialize all the array elements (occurs)?


Answer

occurs clause of an array cant be coded in 01 level.
it should always be coded in work area 2

01 xxx-yyy.
03 XX-YYY-ARRAY OCCURS 10 TIMES.
05 XX-YYY-MEM1 COMP-3 PIC S9(9).
05 XX-YYY-MEM2 COMP-3 PIC S9(9)V9.

Is This Answer Correct ?    16 Yes 1 No

Question { CTS, 22986 }

If i initialize the 01 level variable in array, will it
initialize all the array elements (occurs)?


Answer

All ryt.Answer is no.array elements will not be initialised
automatically.
you can initialise the table with INITIALIZE verb.
INITIALIZE XXX-YYY
this will initialize your alphanumeric with space and
numeric with '0'.
apart from this by moving also u can initialise.

Is This Answer Correct ?    8 Yes 2 No



Prev    1    [2]