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

How can you get the ksds file records into your cobol program?

650


what is the use of outrecord?

1778


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

8680


How can we find that module can be called – whether DYNAMICALLY or STATICALLY?

720


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

941






What is amode(24)?

686


what is difference between cobol and cobol/400

21582


How to get the last record in vsam file in cluster? And how can you get the ksds file records into cobol program?

714


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

721


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.

2066


What is length is cobol?

656


what is the difference between COBOL2 AND COBOL390?

2463


How arrays can be defined in COBOL?

672


What are various search techniques in cobol? Explain.

656


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

774