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
In COBOL programming, what is PERFORM? What is VARYING?
What is perform what is varying?
There are 5 fields and 1000 records in a file. Unload it into an array. Write the syntax for declaration and how will you unload it.
What are all the divisions of a COBOL program?
How you can characterize tables in cobol?
what happens if parmparameter passes zero bytes to the program
Define cobol?
How can i load all the data from a file to Table (array) in cobol.How i manage the occurs clause with out reading the file.Any options avilable ? Please can any one help me it is urgent?
How to get the last record in vsam file in cluster? And how can you get the ksds file records into your cobol program?
In which area will you utilize 88 level items in cobol?
how to refer the data field?
How to remove the spaces at the end of each record in the output file of variable length, via cobol program?
Describe the cobol database components?
) what is the difference between AID and HANDLE AID?
What is the difference between Call and a Link?