How to read the last 100 records from a COBOL file. The file
contains N number of records.

Answer Posted / guest

First move HIGH-VALUES to the key field and then read the
file.It will read the last record then put READ PREV in
loop 100 times to get the last 100 records.

Is This Answer Correct ?    4 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

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.

2002


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

641


How do you reference the fixed block file formats from cobol programs

699


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

1607


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

709






What is a SSRANGE and NOSSRANGE?

818


i made it to stage 3 of an interview process wednessday they will quiz my knowledge again face to face for an analyst role recruiter said it will be based on Business requirements system is cobol and good ideas what they might ask etc

2100


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

727


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

639


Give some examples of command terminators?

751


If you are current on the owner of a set, what is the difference between obtain next and obtain first?

639


What are the access modes of START statement?

716


What is comp-1 and comp-2?

756


how to access the file from prodution from changeman tool and to submit a file to production

6679


how do you reference the ksds vsam file formats from cobol programs

660