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

Name the sections present in data division.

915


) How do u handle errors in BMS macro

1714


Why did you choose to work with ibm mainframe cobol programming?

858


In COBOL, what is the different between index and subscript?

963


How arrays can be defined in COBOL?

845


What is the LINKAGE SECTION used in COBOL?

1216


What is cobol?

960


What are the different rules for performing sort operation?

983


what are decleratives in cobol?

2011


What is the local-storage section?

897


can anybody post me about file-aid and changemen tools pls and give me reference if any mainframe guys are there

2147


Write the code to count the sum of n natural numbers.

940


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

8689


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

891


Are you comfortable in cobol or jcl?

819