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

Answer Posted / mohan

Guys, i suppose that we need to use Arrays concept along
with Subscript or Index concept to access a record in a
sequential file.

Is This Answer Correct ?    2 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How do you get the data to code the BMS macro?

1688


What happens when we move a comp-3 field to an edited (say z (9). Zz-)?

1025


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

2356


How do define dynamic array in cobol.

855


can anybody post me about file-aid and changemen tools pls and give me reference if any mainframe guys are there

2111


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

972


What are all the divisions of a COBOL program?

879


how do you reference the variable block file formats from cobol programs

917


How do you define a variable of comp-1 and comp-2?

904


if we have " ibm mainframe ",in that how to remove first and last leading space eg:"ibm mainframe" like that the answer we need

1059


How do get the result of your program directly on your pc?

2063


if we display var1 then what will b displayed in below condition. 77 var1 pic s9(2) value -10. 77 var1 pic s9(2) value -11. " " " -12. " " " -13. -14 ... ... -19.

6077


how can i see junk values in dclgen or in hostvariable of comp ?

2745


what is the use of outrecord?

1964


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

900