How do you define a table/array in COBOL?
Answer Posted / mojib khan
To define a table using occurs clause..
working -storage section.
01 table.
*for one dimensional array
02 table-name pic size() occurs n times.
03 field1-name pic size.
03 field2-name pic size.
.......
........
........
03 fieldn-name pic size.
| Is This Answer Correct ? | 7 Yes | 2 No |
Post New Answer View All Answers
) how do u code after getting data?
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?
Whats the difference between search & search ALL?
how do you define single dimensional array and multidimensional array in your cobol?
How to fetch 1000 error records from VSAM file(Eg: 1000000 records present) while getting SOC7 abend ?
In COBOL, what is the different between index and subscript?
example for sub strings ? and refernce modifications whit output pls
What is perform what is varying?
How to print 10 to 1 if the input have only 10 digit number?
Name some of the examples of COBOl 11?
How to change size of Initial number of records to *NOMAX for ALL PF files from perticular library, how can I do that
how do you reference the variable unblock file formats from cobol programs
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
How arrays can be defined in COBOL?