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

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

734


What is the usage of comp fields in cobol?

645


which is Best IBM Mainframe Training and Placement Institute in Ameerpet Hyderabad

1013


For rewrite, why is it mandatory that file needs to be opened?

616


What is static and dynamic call in cobol?

586






What rules are to be followed while using the corresponding options?

627


I have one ps file in which there are 3 fileds emp_no,emp_name and leave_app.this ps file information give the detail of employee which is going to apply for leave.suppose emp_no=113430,emp_name=ajay,leave_app=1 that means he is going to apply for 1 day leave.and accordingling the table in db2 will be updated means if he has that no of leave in his account then he will get dat leave and updated acc. in table(leave_balance=previous leave present in table-leave_app).Now i want to check whther the updated result is correct or not by comparing the two ps file using IEBCOMPARE or icetool so what is going to be the two ps file and how its is going to be compare.

1998


Can you please let me know the centre name of INS certification in Kolkata.

1708


What is Pic 9v99 Indicates in COBOL?

716


Write the code implementing the perform … varying.

635


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

673


How do you differentiate between cobol and cobol-ii?

646


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?

1221


Write a cobol program making use of the redefine clause.

721


Explain what you understand by passing by value.

685