# Difference between find and read

**URL:** <https://techcommunity.softwareag.com/t/difference-between-find-and-read/90898>\
**Category:** Forum\
**Tags:** Adabas-Natural, Natural, Natural-on-Mainframes\
**Created:** [August 6, 2009, 7:04pm UTC](https://techcommunity.softwareag.com/t/difference-between-find-and-read/90898 "2009-08-06T19:04:39Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Smruti](https://avatars.discourse-cdn.com/v4/letter/s/bcef8e/32.png) [@Smruti](https://techcommunity.softwareag.com/u/Smruti)\
**Post date:** [August 6, 2009, 7:04pm UTC](https://techcommunity.softwareag.com/t/difference-between-find-and-read/90898/1 "2009-08-06T19:04:39Z")

</div>

Hi,

Just wanted to know the basic difference between a read operation and a find operation.  
Again the find operation some times requires a level to operate better. But how does the level helps it and why do we use lebel

I hope I can build up my basics well fro here 😃

Thanks  
Smruti Kanta

---

<div class="post-metadata">

**Author:** ![Ralph\_Zbrog](https://sea1.discourse-cdn.com/techcommunity/user_avatar/techcommunity.softwareag.com/ralph_zbrog/32/78_2.png) [@Ralph\_Zbrog](https://techcommunity.softwareag.com/u/Ralph_Zbrog)\
**Post date:** [August 6, 2009, 7:11pm UTC](https://techcommunity.softwareag.com/t/difference-between-find-and-read/90898/2 "2009-08-06T19:11:47Z")

</div>

READ retrieves records in some sequence (user-defined key, ISN, or physical). FIND retrieves a collection of records and presents them in ISN sequence.

---

<div class="post-metadata">

**Author:** ![Steve\_Robinson](https://sea1.discourse-cdn.com/techcommunity/user_avatar/techcommunity.softwareag.com/steve_robinson/32/107_2.png) [@Steve\_Robinson](https://techcommunity.softwareag.com/u/Steve_Robinson)\
**Post date:** [August 6, 2009, 7:24pm UTC](https://techcommunity.softwareag.com/t/difference-between-find-and-read/90898/3 "2009-08-06T19:24:13Z")

</div>

I hope I can build up my basics well fro here

Not nearly as well as by taking a Natural class, and, an Adabas class.

By “level” I presume you mean line or symbolic references. They are required occasionally by both FIND and READ to avoid ambiguity. For example, suppose I have a set of nested loops:

```
                     FIND ::::

                          FIND :::::
                              WRITE field-name
                          END-FIND

                      END-FIND

```

Inside the inner FIND, there are, at any time, two records available, one from the inner loop, one from the outer loop. Suppose “field-name” exists for both files (or views). How would Natural know which one you were referring to, unless you qualified the reference by a line number or symbol reference?

The difference between FIND and READ requires Adabas knowledge which I am guessing you do not have.

Very simplisticly, in a library, if you look up an authors name, and make a list of the books by an author (their dewey decimal number), then get the books one at a time, you are doing FIND logic.

By contrast, if you were to go to somewhere in the library and proceed to look at all the books in the library, you would be doing a READ PHYSICAL through the library.

This simplification does not begin to explain READ IN LOGICAL SEQUENCE, or READ BY ISN; but both of these require Adabas knowledge.

You will NOT learn Adabas or Natural by “playing” this way.

steve

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/techcommunity/original/3X/c/d/cd19967bb605d28a72d77eb83a1cae22f3df2eb8.svg) [@system](https://techcommunity.softwareag.com/u/system)\
**Post date:** [April 2, 2021, 2:57pm UTC](https://techcommunity.softwareag.com/t/difference-between-find-and-read/90898/4 "2021-04-02T14:57:21Z")

</div>


