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
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 ?
For rewrite, why is it mandatory that file needs to be opened?
How did the release of cobol/370 version 1.3 improve the performance of release 1.1?
Have you used comp and comp-3 in your project? And how?
What are all the divisions of a COBOL program?
which is Best IBM Mainframe Training and Placement Institute in Ameerpet Hyderabad
INREC AND OUTREC? HOW TO SPLIT 5K RECORDS TO DIFFERENT FILES IN A FILE IN COBOL? RESTART IN COBOL-DB2? ISOLATION LEVELS?
What is Pic 9v99 Indicates in COBOL?
What is the difference between structured cobol programming and object alternativelyiented cobol?
How do you differentiate between cobol and cobol-ii?
)If there are 10 steps in GDG, if I want to refer the step2 after step5 . what should I do?
How to know whether the module is dynamical or statistical?
What is the difference between goback, stop run and exit program in cobol?
How to print 10 to 1 if the input have only 10 digit number?
What are the cobol coding sheets?