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

Answer Posted / sravani

using rrds it is possible. we can count the no of records using rrds key. by using if we can decrement from last to first

Is This Answer Correct ?    0 Yes 7 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How do define dynamic array in cobol.

877


Which is not true about evaluate statement

2116


What happens when we move a comp-3 field to an edited (say z (9). Zz-)?

1041


What is comp-1 and comp-2?

951


) How do u handle errors in BMS macro?

1639


What is the difference between external and global variables in COBOL?

1061


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

1720


how do you reference the printer file formats from cobol programs

911


What is the difference between binary search and sequential search?

869


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

970


I need to compare 3 variables(dates) and do some processing based on the earliest date. There could be more then 1 date record in any of the 3 fields. What is the best way to code this?

2023


HOw can I get the negative sign while deduct high value from low value

2023


How do define dynamic array in cobol. how do you define single dimensional array and multidimensional array in your cobol?

985


what is difference bt COND, REGION & TIME parameters at JOB & EXEC. give an exp.

8701


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.

2224