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

Answer Posted / satty

we can read file in reverse order by using a dynamic array.
first transfer the ps into array and read it by -1 from
counter = no of records in the file

Is This Answer Correct ?    7 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Write a cobol program making use of the redefine clause.

982


How to fetch 1000 error records from VSAM file(Eg: 1000000 records present) while getting SOC7 abend ?

2257


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


How are the next sentence and continue different from each other?

1053


Have you used the sort in your project?for this type of questions any working on real time project give the eg. with real time scenario.

2260


Define cobol?

1095


What is static and dynamic call in cobol?

817


Explain what you understand by passing by value.

942


Which mode is used to operate the sequential file?

955


how do you reference the fixed unblock file formats from cobol programs

965


Write the code implementing the perform … varying.

840


What is an in line perform? When would you use it? Anything else you wish to say about it.

864


What is the Purpose of POINTER Phrase in STRING command in COBOL?

1004


can anybody post me about file-aid and changemen tools pls and give me reference if any mainframe guys are there

2153


How to remove 2 duplicate records and copy only one using job control language?

1005