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 reference the rrds file formats from cobol programs
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
if we display var1 then what will b displayed in below condition. 77 var1 pic s9(2) value -10. 77 var1 pic s9(2) value -11. " " " -12. " " " -13. -14 ... ... -19.
Give some examples of command terminators?
Can we redefine the field of x(200) to less than 200?
Whats the difference between search & search ALL?
input= ,,,, mainframe training ,,, hyderabad .... location.... output1=$ mainframe training in hyderabad location$ output2=**** mainframe training in hyderabad location ****. In this pgn when we give input considering the spaces the output is displayed in this format.Like in the place of ,,,, $ should be displayed likewise.So please helpmeout.
What are the different rules for performing sort operation?
Name the sections present in data division.
how do you reference the fixed unblock file formats from cobol programs
Difference between array and sub-script ?
Why do we code s9 (4) comp. Inspite of knowing comp-3 will occupy less space?
How can we find that module can be called – whether DYNAMICALLY or STATICALLY?
i made it to stage 3 of an interview process wednessday they will quiz my knowledge again face to face for an analyst role recruiter said it will be based on Business requirements system is cobol and good ideas what they might ask etc
what is difference between cobol and cobol/400