If i initialize the 01 level variable in array, will it
initialize all the array elements (occurs)?
Answer Posted / nag(igate)
hi rakesh and sneha
we can initialize the array at group level.
01 xxx-yyy VALUE "ABCDEFGH"
03 XX-YYY-ARRAY OCCURS 2 TIMES.
05 XX-YYY-MEM1 PIC X(2).
05 XX-YYY-MEM2 PIC X(2).
the initialize value should depend on the number of times
the, occurs clause repeat.
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
How do you differentiate between cobol and cobol-ii?
what is s000 u4087 error? please give the all error codes in cobol,jcl.
What is a SSRANGE and NOSSRANGE?
how can i see junk values in dclgen or in hostvariable of comp ?
)If there are 10 steps in GDG, if I want to refer the step2 after step5 . what should I do?
Difference between array and sub-script ?
What is static and dynamic call in cobol?
How to print 10 to 1 if the input have only 10 digit number?
Why is it necessary that file needs to be opened in I-O mode for REWRITE?
what is the use of outrecord?
) How do u handle errors in BMS macro
What is the difference between comp and comp-3 usage?
What is the Purpose of POINTER Phrase in STRING command in COBOL?
Which Search verb is equivalent to PERFORM…VARYING?
How to get the last record in vsam file in cluster? And how can you get the ksds file records into your cobol program?