Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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 comp-1 and comp-2?

1187


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

1177


Why did you choose to work with ibm mainframe cobol programming?

1036


There are 5 fields and 1000 records in a file. Unload it into an array. Write the syntax for declaration and how will you unload it.

1386


Difference between array and sub-script ?

1605


What is the use of intialize verb?

1185


Have you used comp and comp-3 in your project? And how?

2425


Define cobol?

1313


I have File 1 occurs 5 times with Employee-ID,Employee-Name,Employee-Dept (EEE and MECH). I have File 2 occurs 10 times with Employee-ID,Employee-Name,Employee-Dept (EEE,CIVIL,CHEMICAL and MECH). In FIle 1 and FIle 2 , for matching Employee-DEPT (Only MECH) , we need to move entire records from file1 to file 2. We should not use 2D array. Your help is needed here.

1509


Write the code implementing the perform … varying.

1015


What do you understand by psb and acb?

1058


How to find out the closest prime number of an input number? I believe it has something to do with SEARCH and COBOL Linear Array.

4121


What are the pertinent COBOL

2509


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

1324


What are all the divisions of a COBOL program?

1148