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

input 1 input2 ouput1 output2 output 3 1 re 300 1 re 200 1 re 300 3 rc 500 1 re 200 2 rr 400 1 re 300 2 rr 400 1 rc 400 3 rc 500 1 rc 400 2 rr 700 2 rr 700 5 tt 900 5 tt 900 2 inputs r in flat file and output 1 is matched records,ouptput2 is unmatched of input1,output3 is unmatched of input2! how vl u get the output files using sequential order and to check with each and every records! let me know the procedure division ?

2090


For rewrite, why is it mandatory that file needs to be opened?

836


How did the release of cobol/370 version 1.3 improve the performance of release 1.1?

866


Have you used comp and comp-3 in your project? And how?

2205


What are all the divisions of a COBOL program?

893


which is Best IBM Mainframe Training and Placement Institute in Ameerpet Hyderabad

1238


INREC AND OUTREC? HOW TO SPLIT 5K RECORDS TO DIFFERENT FILES IN A FILE IN COBOL? RESTART IN COBOL-DB2? ISOLATION LEVELS?

621


What is Pic 9v99 Indicates in COBOL?

933


What is the difference between structured cobol programming and object alternativelyiented cobol?

992


How do you differentiate between cobol and cobol-ii?

857


)If there are 10 steps in GDG, if I want to refer the step2 after step5 . what should I do?

1744


How to know whether the module is dynamical or statistical?

866


What is the difference between goback, stop run and exit program in cobol?

1228


How to print 10 to 1 if the input have only 10 digit number?

1028


What are the cobol coding sheets?

867