# Access to Adabas using UDB-parm

**URL:** <https://techcommunity.softwareag.com/t/access-to-adabas-using-udb-parm/60829>\
**Category:** Forum\
**Tags:** Adabas-Natural, Natural, Natural-on-Mainframes, Natural-Database-and-TP-Monitor-Interfaces-on-Mainframes\
**Created:** [April 18, 2006, 8:01pm UTC](https://techcommunity.softwareag.com/t/access-to-adabas-using-udb-parm/60829 "2006-04-18T20:01:07Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![JR1](https://avatars.discourse-cdn.com/v4/letter/j/dfb087/32.png) [@JR1](https://techcommunity.softwareag.com/u/JR1)\
**Post date:** [April 18, 2006, 8:01pm UTC](https://techcommunity.softwareag.com/t/access-to-adabas-using-udb-parm/60829/1 "2006-04-18T20:01:07Z")

</div>

Hi all,

our DDMs were generated with DBID=0. For access to different database the applications change the actual UDB by using the USR1040N. For returning back to start-database the UDB will set to 0 - we get the userdata of FUSER-DBID.

Now the problem:  
Every database has its own Natural-Installation. We want to centralize the Natural-Installations. So the Userdatabase will not be the FUSER-DB.

Is there any possibility to solve the problem without changing hundreds of applications?

Thanks for help

regards  
Joerg

---

<div class="post-metadata">

**Author:** ![Wilfried\_B](https://sea1.discourse-cdn.com/techcommunity/user_avatar/techcommunity.softwareag.com/wilfried_b/32/83_2.png) [@Wilfried\_B](https://techcommunity.softwareag.com/u/Wilfried_B)\
**Post date:** [April 18, 2006, 10:30pm UTC](https://techcommunity.softwareag.com/t/access-to-adabas-using-udb-parm/60829/2 "2006-04-18T22:30:34Z")

</div>

JR, write a wrapper for USR1040N (call it USR1040W). USR1040W saves the current UDB value when called with a non zero UDB value and restores the saved UDB when called with zero UDB value (use a AIV +USR1040W#UDB defined in USR1040W for this purpose). All this by calling USR1040N. With scan/replace you only have to change USR1040N into USR1040W in all the using programs. And you can do it now! Before changing to your centralized FUSER.

---

<div class="post-metadata">

**Author:** ![JR1](https://avatars.discourse-cdn.com/v4/letter/j/dfb087/32.png) [@JR1](https://techcommunity.softwareag.com/u/JR1)\
**Post date:** [April 20, 2006, 5:00pm UTC](https://techcommunity.softwareag.com/t/access-to-adabas-using-udb-parm/60829/3 "2006-04-20T17:00:46Z")

</div>

Thanks for your advise, Wilfried.

It works fine.

I think there is no possibility to realize it without programming.

---

<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/access-to-adabas-using-udb-parm/60829/4 "2021-04-02T14:40:35Z")

</div>


