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 difference between a binary search and a sequential search what are the pertinent cobol?

735


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

642


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

644


How can we find that module can be called – whether DYNAMICALLY or STATICALLY?

710


There are 5 fields and 1000 records in a file. Unload it into an array. Write the syntax for declaration and how will you unload it.

932






how do you reference the printer file formats from cobol programs

661


Write a program to enter and display the names of students in a class using the occurs clause.

652


What is comp-1 and comp-2?

764


Why would you use find and get rather than to obtain?

683


Difference between array and sub-script ?

1164


What are declaratives and what are their uses in cobol?

714


) How do u handle errors in BMS macro?

1427


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

756


i want a program using by if, evaluate , string, unstring, perform, occurs?

4057


What are all the divisions of a COBOL program?

663