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
Explain the configuration section of a cobol program with examples of syntax.
State the various causes of s0c1, s0c5 and s0c7.
What rules are to be followed while using the corresponding options?
What is report-item in COBOL?
What is the difference between external and global variables in COBOL?
What are the various section in data division and briefly explain them.
Explain what you understand by passing by value.
how do you reference the variable unblock file formats from cobol programs
What are 77 levels used for?
Name the sections present in data division.
How do define dynamic array in cobol.
Write down the divisions of cobol program?
Can we change the password using ALTER? anyone tried and changed?
Why would you use find and get rather than to obtain?
EXPLAIN MAIN FRAME TESTING PROCESS...HOW TO FIX THE MAINFRAME BUGS?