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

Answer Posted / mohan

Guys, i suppose that we need to use Arrays concept along
with Subscript or Index concept to access a record in a
sequential file.

Is This Answer Correct ?    2 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Why do we code s9 (4) comp. Inspite of knowing comp-3 will occupy less space?

706


what is the difference between COBOL2 AND COBOL390?

2451


Is it possible that the redefines clause has different picture clauses compared to the one it redefined?

672


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?

1228


What is the local-storage section?

681






What is comp-1 and comp-2?

759


What is the utilization of copybook in cobol?

651


I need to compare 3 variables(dates) and do some processing based on the earliest date. There could be more then 1 date record in any of the 3 fields. What is the best way to code this?

1802


how can we apply for HSBC exam(Mainframe) in India??? i went to their site and was told to submit my CV ,. etc..( totally confusing...)

1922


What the difference is between continue and next sentence?

652


HOw can I get the negative sign while deduct high value from low value

1786


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

743


how do you reference the rrds file formats from cobol programs

793


What is the difference between goback, stop run and exit program in cobol?

920


What rules are followed by the search verb.

631