I have a sequential file. How do I access a record in this
sequential file randomly in my program ?

Answer Posted / santhosh

write a temporary index file defining unique key, move the
sequential file to that temp index file and access the temp.
index file randomly

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the default value(s) for an initialize? What keyword will allow for an override of the default?

655


What are different data types in cobol?

686


Name the sections present in data division.

698


How to fetch 1000 error records from VSAM file(Eg: 1000000 records present) while getting SOC7 abend ?

1930


write a cobol logic. i have file that has 10 records .1 record go to first output file and second record goes to 2 output and etc

701






What is the difference between PIC 9.99 and PIC9v99?

775


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

716


How do u write test cases?

1633


What is the default value(s) for an initialize and what keyword allows for an override of the default?

691


what is s000 u4087 error? please give the all error codes in cobol,jcl.

17028


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

643


Mention the guidelines to write a structured cobol program?

617


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

694


Why do we code s9 (4) comp. Inspite of knowing comp-3 will occupy less space?

706


what is search and searchall?what is the diffrence between them?give an best example?

5540