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

Answer Posted / srini

Sort the file based on key in descending order. You can
read the file in reverse order.

Is This Answer Correct ?    44 Yes 27 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Difference between array and sub-script ?

1157


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

690


There are 5 fields and 1000 records in a file. Unload it into an array. Write the syntax for declaration and how will you unload it.

926


I have one ps file in which there are 3 fileds emp_no,emp_name and leave_app.this ps file information give the detail of employee which is going to apply for leave.suppose emp_no=113430,emp_name=ajay,leave_app=1 that means he is going to apply for 1 day leave.and accordingling the table in db2 will be updated means if he has that no of leave in his account then he will get dat leave and updated acc. in table(leave_balance=previous leave present in table-leave_app).Now i want to check whther the updated result is correct or not by comparing the two ps file using IEBCOMPARE or icetool so what is going to be the two ps file and how its is going to be compare.

2001


how we sort two input files based on a common column and giving one o/p file please send me the coding logic?

1644






What are declaratives and what are their uses in cobol?

704


i want a program using by if, evaluate , string, unstring, perform, occurs?

4042


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

639


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

1607


What type of SDLC u followed? Why?

1516


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

709


Write a cobol program making use of the redefine clause.

724


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

8632


How many bytes S(8) comp field occupy and its maximum value?

1626


What guidelines should be followed to write a structured cobol prgm?

665