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

Answer Posted / lu

Hi Guys,
when you say "sequential" it means you have to read from 1
to 9999...Never say sequential file and read randomly !!!!!
use read util the field you want....
Perform 100-read until ws-field = 'yes'.......

Is This Answer Correct ?    0 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the pertinent COBOL commands?

2621


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

680


What is the difference between PIC 9.99 and 9v99 in COBOL?

729


What is the difference between comp and comp-3 usage?

675


What is the compute verb? How is it used?

655






How do we get current date from system with century in COBOL?

798


What is comp-1 and comp-2?

759


what are decleratives in cobol?

1827


what is the use of outrecord?

1768


How you can characterize tables in cobol?

711


Explain the configuration section of a cobol program with examples of syntax.

655


What is the difference between a binary search and a sequential search what are the pertinent cobol?

730


Difference between cobol and cobol-ii?

704


What is the difference between Structured COBOL Programming and Object Oriented COBOL programming?

672


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

1520