# Trouble opening the database from a deamon

**URL:** <https://techcommunity.softwareag.com/t/trouble-opening-the-database-from-a-deamon/57748>\
**Category:** Forum\
**Tags:** Adabas-Natural, Adabas, Adabas-on-Linux, Adabas-Utilities-on-Open-Systems\
**Created:** [June 21, 2005, 1:23pm UTC](https://techcommunity.softwareag.com/t/trouble-opening-the-database-from-a-deamon/57748 "2005-06-21T13:23:05Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![jpb](https://avatars.discourse-cdn.com/v4/letter/j/f475e1/32.png) [@jpb](https://techcommunity.softwareag.com/u/jpb)\
**Post date:** [June 21, 2005, 1:23pm UTC](https://techcommunity.softwareag.com/t/trouble-opening-the-database-from-a-deamon/57748/1 "2005-06-21T13:23:05Z")

</div>

Hi,

I used to develop a deamon (process started by InetD) on Adabas version 3.1.1.29 over hpux 11.00. The main objective of this process was to insert some data in a database and it was running well.

Now we migrate on Adabas version 3.3.2 over hpux 11.11, I rebuild my program ans it’s no longuer working. The error code is 148 and there is nothing in “add2” of the reply structure.

The think I do :  
I take a part of the sample given by SAG, and I put some modification to make an insert in my database.  
From the shell running as root with “sagenv” imported it works well.  
The same program started by “inetd” does’nt work, I try to put exacltly the same environnement vars but I’ve still got error 148.

Does somebody know the exact list of environment var needed by such a program ?

Anybody can help ?

Thanks in advance.

Jean-Paul BLANC

---

<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:38pm UTC](https://techcommunity.softwareag.com/t/trouble-opening-the-database-from-a-deamon/57748/2 "2021-04-02T14:38:50Z")

</div>


