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 is search and searchall?what is the diffrence between them?give an best example?

5558


What are different data types in cobol?

689


How you can characterize tables in cobol?

717


how do you reference the fixed unblock file formats from cobol programs

712


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

805






) How do u handle errors in BMS macro

1510


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

1523


How are the next sentence and continue different from each other?

766


Difference between cobol and cobol-ii?

704


How do you reference the fixed block file formats from cobol programs

703


Why would you use find and get rather than to obtain?

684


Give some examples of command terminators?

757


How to get the last record in vsam file in cluster? And how can you get the ksds file records into your cobol program?

648


How to fetch 1000 error records from VSAM file(Eg: 1000000 records present) while getting SOC7 abend ?

1937


I have a program with an Array of 5000 occurences which is being passed from 5 sub levels to the front end screen. Thess 5 programs using each 5*2 = 10 different arrays with size as 5000. This is causing the transaction to utilize more storage consupmtion. I am looking to reduce the storage consumption. As part of that initially i thought Dynamic array may solve my problem. After viewing the comments given i see its same as normal array. IS there any other way we can resolve this issue?

1230