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
What is comp-1 and comp-2?
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
Why did you choose to work with ibm mainframe cobol programming?
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.
Difference between array and sub-script ?
What is the use of intialize verb?
Have you used comp and comp-3 in your project? And how?
Define cobol?
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.
Write the code implementing the perform … varying.
What do you understand by psb and acb?
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.
What are the pertinent COBOL
How do we get current date from system with century in COBOL?
What are all the divisions of a COBOL program?