# Natural Native Interface and ADABAS

**URL:** <https://techcommunity.softwareag.com/t/natural-native-interface-and-adabas/61369>\
**Category:** Forum\
**Tags:** Adabas-Natural, Natural, Natural-on-Linux, Natural-Database-Interfaces-on-Open-Systems\
**Created:** [August 25, 2006, 5:13pm UTC](https://techcommunity.softwareag.com/t/natural-native-interface-and-adabas/61369 "2006-08-25T17:13:01Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Eng1958](https://avatars.discourse-cdn.com/v4/letter/e/8491ac/32.png) [@Eng1958](https://techcommunity.softwareag.com/u/Eng1958)\
**Post date:** [August 25, 2006, 5:13pm UTC](https://techcommunity.softwareag.com/t/natural-native-interface-and-adabas/61369/1 "2006-08-25T17:13:01Z")

</div>

Hello,

I’m trying to use the Natural Native Interface to call a NATURAL subprogram.  
In this subprogramm everything works fine, when there is no access to the database.

When a do a FIND or anything else in this subprogram I get the following message:

```auto
...Done. Return code = 3148.
MessageNumber: 3148.
MessageText: NAT3148 Database 1 is not active or not accessible
Library: TGAP50.
Member: LON-PLDA.
Name: .
Method: .
Line: 2560.
```

I think the Database number 1 is wrong, but how can I tell the NNI the right Database number?  
The subprogram works if I call it from a NATURAL program

Thanks  
D.E.

---

<div class="post-metadata">

**Author:** ![BenedictXVII](https://avatars.discourse-cdn.com/v4/letter/b/50afbb/32.png) [@BenedictXVII](https://techcommunity.softwareag.com/u/BenedictXVII)\
**Post date:** [August 25, 2006, 6:04pm UTC](https://techcommunity.softwareag.com/t/natural-native-interface-and-adabas/61369/2 "2006-08-25T18:04:40Z")

</div>

> [@Eng1958](#):
>
> I think the Database number 1 is wrong, but how can I tell the NNI the right Database number? The subprogram works if I call it from a NATURAL program.

What does your call to nni\_initialize look like? Do you initialize the Natural session in the NNI program with the same parameters as the Natural session where the database access works? Please check. Regards, +o:-]

---

<div class="post-metadata">

**Author:** ![Eng1958](https://avatars.discourse-cdn.com/v4/letter/e/8491ac/32.png) [@Eng1958](https://techcommunity.softwareag.com/u/Eng1958)\
**Post date:** [August 25, 2006, 8:15pm UTC](https://techcommunity.softwareag.com/t/natural-native-interface-and-adabas/61369/3 "2006-08-25T20:15:06Z")

</div>

😃 That’s it, Natural had to know the database-number with udb=NNN and now it works.

Thanks  
D.E.

---

<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:40pm UTC](https://techcommunity.softwareag.com/t/natural-native-interface-and-adabas/61369/4 "2021-04-02T14:40:48Z")

</div>


