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

Answer Posted / shrik

Reading the records into a buffer (array) and using it in
reverse order would be the first idea that comes to mind but
that way doesnt work for file with millions of records.

Is This Answer Correct ?    18 Yes 6 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is perform what is varying?

951


What are the various section in data division and briefly explain them.

942


What kind of error is trapped by on size error option?

988


1.give the details about WHEN OTHER. 2. how many form are available in evaluate.

1884


i was faced one question- i have value -00001234.56 Suppress the zeroes and the output should be -1234.56 But Not - 1234.56 spaces should not be available after suppressing the zeroes. logic in jcl and cobol?

1104


How did the release of cobol/370 version 1.3 improve the performance of release 1.1?

887


What is the difference between a binary search and a sequential search what are the pertinent cobol?

951


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.

6146


How do you get the data to code the BMS macro?

1742


What is the difference between goback, stop run and exit program in cobol?

1270


What is the local-storage section?

915


1.Is it possible to move the data from 99.99 to 99v99? 2.What is the CICS-vsam Compilation process? 3.In My GDG 5 generation will be there GDG3 got an abend what will happen? 4.In my GDG first generation is +1 And I want to add the new generation what will happen previous generation? 5.How can you give the PIC clause below conditions A). s9 (reddy), B). s9 (5) occurs 5 times? 6.How override the proc from a particular step? and what is symbolic and override Procs?

5629


Which mode is used to operate the sequential file?

955


Can a Search can be done on a table with or without Index?

1082


What is static and dynamic call in cobol?

817