what is the difference between read and find ?

Answer Posted / sundar selvaraj

- Read is a sequential operation whereas FIND is a random
search.
- Read returns records in the order of descriptor whereas
FIND returns records records in the ISN order
- Though both READ & FIND intiate a processing loop, READ
command returns only *COUNTER and *ISN. FIND returns
*NUMBER, *COUNTER AND *ISN
- Dynamic change of read direction is possible with READ.
This is not possible with FIND.
- Read is considered efficient for a large number of
records. FIND is efficient for a smaller number of records.

Is This Answer Correct ?    21 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How are you going to remove duplicates from the file that is being read?

540


In a Natural program i used the below code for report FORMAT LS=132 PS=60 And down the line I want to change either LS/PS like FORMAT LS=120 PS=50, is it possible? How it will work?

1437


Explain how to move cursor to a particular field when position is not known?

531


Define cobol coding sheet?

566


What is the difference between read(1) and read work file once?

570






Explain the like inverted list?

539


Explain the data storage?

556


How to receive data passed through jcl parm parameter in a natural program?

555


Explain what happens when you issue a escape routine in a program? Will there be any compilation /run time erro?

565


Explain difference between read work file 1 and read work file once? Why we are using work file once?

556


How converted the natural coding for adabas

2684


What is cobol coding sheet?

719


What is a hyperdescriptor? How does it work?

629


How to create 1 ddm that fetches 3 adabas files simultaneously?

535


Tell me what type of files we can process thru file-aid?

532