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
Discuss about changing dataset name in proc.
here is my requirement A1 is alphanumeric with value 'A1B2C3D4' as defined below 05 A1 PIC X(8) VALUE IS 'A1B2C3D4' but i need to have A2,A3 as ABCD & 1234 repectively...... A2 = ABCD A3 = 1234 Can you please explain me what are the different ways to do it?
how to refer the data field?
What happens when we move a comp-3 field to an edited (say z (9). Zz-)?
What are all the divisions of a COBOL program?
For rewrite, why is it mandatory that file needs to be opened?
What is the difference between a binary search and a sequential search what are the pertinent cobol?
How to use the same COBOL program in Batch and CICS on lines? explain with an example
what happens if parmparameter passes zero bytes to the program
A table has two indexes defined. Which one will be used by the SEARCH?
2 input fles: 2 flat files, with different number of records. both are having unique key for each record and already sorted in ascending order . match these files using unique key and in output only matching key value has to be written. please procide cobol logic
can you please let me know if there is any walkins for COBOL/PLI/DB2/IMS/JCL in pune other than IBM and ITC infotech
Name the sections present in data division.
Can a Search can be done on a table with or without Index?
What is a scope terminator give example?