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
Why occurs cannot be used in 01 level in COBOL?
Write the code to count the sum of n natural numbers.
what is difference bt COND, REGION & TIME parameters at JOB & EXEC. give an exp.
I have a File that has duplicate records. I need only those records that occur more than thrice.?
Give some examples of command terminators?
What are various search techniques in cobol? Explain.
What are declaratives and what are their uses in cobol?
What is a SSRANGE and NOSSRANGE?
Explain sorting techniques in cobol program? Provide the sort file definition, the sort statement, its syntax and meaning
what is the difference between COBOL2 AND COBOL390?
What are INPUT PROCEDURE and OUTPUT PROCEDURE?
What are the different data types in cobol?
can anybody post me about file-aid and changemen tools pls and give me reference if any mainframe guys are there
i have 10 names in an array and my name is one of them also array is not in sorted order i need to display my name using index how will i do this
Name the sections present in data division.