sample code for read a 2nd record from last in flatfile how
can do?

Answer Posted / sunilkumar

First open the file in reverse order using OPEN command

OPEN FILE file-name REVERSE

Then read twice to get the 2nd last record.

Is This Answer Correct ?    0 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is rmode(24)

926


How to remove 2 duplicate records and copy only one using job control language?

998


what is the use of outrecord?

1996


please..could u give an example about USAGE IS POINTER ..and explain why and when we use it ?

2215


Are you comfortable in cobol or jcl?

831


what is amode(24), amode(31), rmode(24) and rmode(any)?

911


Write down the divisions of cobol program?

871


What is redefines clause in COBOL?

1070


What is cobol?

972


what are decleratives in cobol?

2026


what is difference between cobol and cobol/400

22204


In which area will you utilize 88 level items in cobol?

930


What is comp-1 and comp-2?

964


What are the different types of condition in cobol and write their forms.

888


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

886