How do you define a table/array in COBOL?
Answer Posted / anil prajapati
Table/array can be defined in cobol by using occurs with
times clause
like
working-=storage section.
01 tab1 value 'anilkumarprajapati'.
03 tab2 pic x(3) occurs 6 times indexed by i.
procedure division.
display tab2(i).
stop run.
output will be dsiplayed like
ani
lku
....
| Is This Answer Correct ? | 23 Yes | 9 No |
Post New Answer View All Answers
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.
please..could u give an example about USAGE IS POINTER ..and explain why and when we use it ?
What is the difference between PIC 9.99 and 9v99 in COBOL?
Explain about different table spaces.
How do we get current date from system with century in COBOL?
how can i see junk values in dclgen or in hostvariable of comp ?
I need to compare 3 variables(dates) and do some processing based on the earliest date. There could be more then 1 date record in any of the 3 fields. What is the best way to code this?
What is a report item?
how to refer the data field?
If you are current on the owner of a set, what is the difference between obtain next and obtain first?
what is amode(24), amode(31), rmode(24) and rmode(any)?
what is the difference between COBOL2 AND COBOL390?
What type of SDLC u followed? Why?
How do define dynamic array in cobol.
What are the cobol coding sheets?