Trouble opening the database from a deamon

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