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

Answer Posted / mahendra.ch

first we can move the records to an occurs

then

we can solve this problem by using perform varing 1 by -1
until i=0

hear i = number of racords.

iam shure it works.

thank you....

Is This Answer Correct ?    8 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

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

713


)If there are 10 steps in GDG, if I want to refer the step2 after step5 . what should I do?

1520


What are INPUT PROCEDURE and OUTPUT PROCEDURE?

680


I have to write to a outfile where the number of records in that file should be the header of that file using IMS.. can anyone help me in this issue

1927


What are 77 levels used for?

656






What is amode(24), amode(31), rmode(24) and rmode(any) (applicable to only mvsesa enterprise server) ?

670


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

796


What is difference between static and dynamic call in cobol?

772


Why do we code s9 (4) comp. Inspite of knowing comp-3 will occupy less space?

706


How arrays can be defined in COBOL?

661


which is Best IBM Mainframe Training and Placement Institute in Ameerpet Hyderabad

1019


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

643


Write the code implementing the perform … varying.

639


Define cobol?

856


When is inspect verb is used in cobol?

671