Answer Posted / vinay gautam
working-storage section.
77 index1 pic 9 value 1.
01 week value 'montuewedthufrisatsun'.
03 days pic x(3) occurs 7 times indexed by idx.
procedure division.
perform varying index1 from 1 by 1 until index1 >= 8
display days(Index1)
compute index1 = index1 + 1
end-perform.
stop run.
| Is This Answer Correct ? | 7 Yes | 1 No |
Post New Answer View All Answers
Explain the input procedure?
What is comp?
Explain the output procedure?
What is sort? And its syntax?
Explain the difference between section, paragraph and sentences?
Define redefine and its syntax?
How to detect record is locked in cobol/400?
seqence numbers in cobol
Define perform? And its types?
Explain the types of perform?
What is perform?
How to update data area in cobol 400 program?
Explain the input procedure and output procedure?
I like to know if possible to use %TRIM or any statement with prefiv "%" like RPG ile programs. thanks
Explain the syntax of redefine?