# How to read/retrieve the data from ADABAS database using NATURAL program

**URL:** <https://techcommunity.softwareag.com/t/how-to-read-retrieve-the-data-from-adabas-database-using-natural-program/175293>\
**Category:** Forum\
**Tags:** Adabas-Natural, Natural, Natural-on-Mainframes, Natural-Database-and-TP-Monitor-Interfaces-on-Mainframes\
**Created:** [March 26, 2014, 2:51am UTC](https://techcommunity.softwareag.com/t/how-to-read-retrieve-the-data-from-adabas-database-using-natural-program/175293 "2014-03-26T02:51:56Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Rajendra\_Jupaka](https://avatars.discourse-cdn.com/v4/letter/r/bb73d2/32.png) [@Rajendra\_Jupaka](https://techcommunity.softwareag.com/u/Rajendra_Jupaka)\
**Post date:** [March 26, 2014, 2:51am UTC](https://techcommunity.softwareag.com/t/how-to-read-retrieve-the-data-from-adabas-database-using-natural-program/175293/1 "2014-03-26T02:51:56Z")

</div>

Hello all,

I’m new to NATURAL,could you please let me know how to read/retreive the MID-GRP data using NATURAL COBOL from the below DDM. I appreciate your help !

P 1 MA MID-GRP  
2 MB MID A 10 N  
P 1 MC NAME-GRP  
2 MD LST-NAME A 50 N  
2 ME FST-NAME A 15 N  
2 MF MID-NAME A 15 N

---

<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:** [March 26, 2014, 12:08pm UTC](https://techcommunity.softwareag.com/t/how-to-read-retrieve-the-data-from-adabas-database-using-natural-program/175293/2 "2014-03-26T12:08:49Z")

</div>

There is an old joke:

Q: How do I get to Carnegie Hall?  
A: Practice, practice, practice.

How do you read data?

First, you learn a bit about Adabas and Natural. By the way, there is no such thing as “NATURAL COBOL” that you referenced in your post.

Assuming you are writing in Structured Mode, you will have a View of the file in your program (probably in your Local Data Area) or in an external data Area.

In the View you could specify individual or ranges of occurrences of your Periodic Group fields.

All that done, you could either READ or FIND records from the view.

Strict Report Mode does not permit views; What I call “mixed mode”, also called structured data mode, does permit Views. In strict Report Mode, you READ, FIND from the file name. Again, you can access individual or ranges of occurrences.

---

<div class="post-metadata">

**Author:** ![Matthias1](https://avatars.discourse-cdn.com/v4/letter/m/9fc348/32.png) [@Matthias1](https://techcommunity.softwareag.com/u/Matthias1)\
**Post date:** [March 26, 2014, 2:19pm UTC](https://techcommunity.softwareag.com/t/how-to-read-retrieve-the-data-from-adabas-database-using-natural-program/175293/3 "2014-03-26T14:19:59Z")

</div>

[http://techcommunity.softwareag.com/ecosystem/documentation/natural/nat823mf/pg/pg\_dbms\_ada.htm](http://techcommunity.softwareag.com/ecosystem/documentation/natural/nat823mf/pg/pg_dbms_ada.htm)

[http://techcommunity.softwareag.com/ecosystem/documentation/natural/nat823mf/pg/pg-over.htm](http://techcommunity.softwareag.com/ecosystem/documentation/natural/nat823mf/pg/pg-over.htm)

---

<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, 3:30pm UTC](https://techcommunity.softwareag.com/t/how-to-read-retrieve-the-data-from-adabas-database-using-natural-program/175293/4 "2021-04-02T15:30:40Z")

</div>


