# User Exit to change database number

**URL:** <https://techcommunity.softwareag.com/t/user-exit-to-change-database-number/173427>\
**Category:** Forum\
**Tags:** Adabas-Natural, Adabas, Adabas-Basics-on-Linux-Unix-Windows, Adabas-on-Windows-UNIX, Adabas-on-Linux\
**Created:** [November 21, 2013, 12:39pm UTC](https://techcommunity.softwareag.com/t/user-exit-to-change-database-number/173427 "2013-11-21T12:39:58Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ian\_Marrow](https://sea1.discourse-cdn.com/techcommunity/user_avatar/techcommunity.softwareag.com/ian_marrow/32/517_2.png) [@Ian\_Marrow](https://techcommunity.softwareag.com/u/Ian_Marrow)\
**Post date:** [November 21, 2013, 12:39pm UTC](https://techcommunity.softwareag.com/t/user-exit-to-change-database-number/173427/1 "2013-11-21T12:39:58Z")

</div>

I have an ADABAS 6.3.0 database running on a Unix server with dbid=40  
I also have a mainframe system accessing an ADABAS 6.3.0 database on a different Unix server with dbid=209 through Entire Network 7.4.0

I would like to point the mainframe system Entire Network calls at the dbid=40 on the first server. For various reasons I can’t renumber either database or change the mainframe database number. I know I’m on old versions of Adabas and Entire Network , but I can’t see us upgrading either in the short term

As far as I can see my only option would be User Exits on either Entire Network on the Unix server or within Adabas to trap the dbid=209 and change it to dbid=40, but I’ve never used User Exits on either. Can anyone give me a hint on how to start or suggest any other ways I can achieve my aim?

---

<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:** [November 21, 2013, 12:45pm UTC](https://techcommunity.softwareag.com/t/user-exit-to-change-database-number/173427/2 "2013-11-21T12:45:29Z")

</div>

What are you using on the mainframe to talk to Adabas ?  
Direct call programs ?

If it’s Natural then it’s easy to switch the dbid there.

---

<div class="post-metadata">

**Author:** ![Ian\_Marrow](https://sea1.discourse-cdn.com/techcommunity/user_avatar/techcommunity.softwareag.com/ian_marrow/32/517_2.png) [@Ian\_Marrow](https://techcommunity.softwareag.com/u/Ian_Marrow)\
**Post date:** [November 21, 2013, 12:51pm UTC](https://techcommunity.softwareag.com/t/user-exit-to-change-database-number/173427/3 "2013-11-21T12:51:54Z")

</div>

Hi Wolfgang,

The application on the mainframe is written in Natural, but we don’t have easy access to change that, plus there’s already a dbid=40 on the mainframe which would complicate things even further

---

<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:** [November 21, 2013, 1:51pm UTC](https://techcommunity.softwareag.com/t/user-exit-to-change-database-number/173427/4 "2013-11-21T13:51:12Z")

</div>

In that case you’ll hit server2 with DBID=209, you’d switch the DBID in the user exit and then WCP would need to relay the call to server1.

Not sure if that’s gonna work …

Any chance you can set up a dummy db 209 on the first server so that WCP will hit the correct machine right away before you switch the dbid ?

---

<div class="post-metadata">

**Author:** ![Ian\_Marrow](https://sea1.discourse-cdn.com/techcommunity/user_avatar/techcommunity.softwareag.com/ian_marrow/32/517_2.png) [@Ian\_Marrow](https://techcommunity.softwareag.com/u/Ian_Marrow)\
**Post date:** [November 21, 2013, 2:02pm UTC](https://techcommunity.softwareag.com/t/user-exit-to-change-database-number/173427/5 "2013-11-21T14:02:30Z")

</div>

Yes I can point Entire Network at the first server fairly easily. I was assuming I’d have to do that anyway. I’m sure I could set up another db209 on server 1 if necessary, but I was hoping to do it in an Entire Network User Exit if possible.

I’ve got a DB 040 on server 2 as well, so I could test any User Exit there before moving over to the live server

---

<div class="post-metadata">

**Author:** ![Kimberly\_Deborah](https://avatars.discourse-cdn.com/v4/letter/k/a8b319/32.png) [@Kimberly\_Deborah](https://techcommunity.softwareag.com/u/Kimberly_Deborah)\
**Post date:** [August 27, 2014, 8:58am UTC](https://techcommunity.softwareag.com/t/user-exit-to-change-database-number/173427/6 "2014-08-27T08:58:28Z")

</div>

The purpose of the user exit is to populate one or more named pipes with data that is simultaneously read from by the load utility.

---

<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:29pm UTC](https://techcommunity.softwareag.com/t/user-exit-to-change-database-number/173427/7 "2021-04-02T15:29:51Z")

</div>


