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
What is the compute verb? How is it used?
Can we redefine the field of x(200) to less than 200?
In COBOL programming, what is PERFORM? What is VARYING?
How you can read the file from bottom?
How do you define a variable of comp-1 and comp-2?
What are the pertinent COBOL
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 happens if parmparameter passes zero bytes to the program
what is difference between cobol and cobol/400
Which is the default, TEST BEFORE or TEST AFTER for a PERFORM statement?
How did the release of cobol/370 version 1.3 improve the performance of release 1.1?
how do you reference the fixed unblock file formats from cobol programs
Our issue is there seems to be a disconnect, or no link, between our SELECT statement and our SD. We had SELECT SORT-FILE and SELECT SORT-FILE ASSIGN TO SORTWRK. ASSIGN TO SORTWRK1 SORTWRK2 SORTWRK3 SORTWRK4. with SD SORT_FILE RECORD CONTAINS 7833 CHARACTERS. In either case, at run time, the system ignored our SORTWRK# DD statements and allocated 16 sort works with the SORTWK## naming convention. Any ideas why the system does not recognize the connection? We do not even need the SORTWRK DD statements. Thanks
2 input fles: 2 flat files, with different number of records. both are having unique key for each record and already sorted in ascending order . match these files using unique key and in output only matching key value has to be written. please procide cobol logic
What are the pertinent COBOL commands?