How to read records from flat file in reverse order through
COBOL program?

Answer Posted / janu

using iebcmpr
we can easily read
sort fields=(pos,length,d,char)

Is This Answer Correct ?    8 Yes 23 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How do we get current date from system with century in COBOL?

807


) what is the difference between AID and HANDLE AID?

1637


When is inspect verb is used in cobol?

679


how do you reference the rrds file formats from cobol programs

802


How to traceback if I am getting SOC7 or SOC4 abend? List down the steps

984






What are literals?

632


how to access the file from prodution from changeman tool and to submit a file to production

6686


Explain the configuration section of a cobol program with examples of syntax.

661


How many sections are there in data division in COBOL?

680


If you are current on the owner of a set, what is the difference between obtain next and obtain first?

644


How to read the 2nd last record of a VSAM file? (The file size is huge and we don't know the key)

2723


How you can read the file from bottom?

660


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

2337


I have a File that has duplicate records. I need only those records that occur more than thrice.?

8657


What is the default value(s) for an initialize and what keyword allows for an override of the default?

697