NAT3048 File / USERID not available at open time.

Hi, I try here becuse I think it’s an installation or setup problem but pls advice me if it is another better topic for this.

My natural prorgram1 runs on Solaris. It does unix schell script calling 3 times:

COMPRESS ‘script1 1>/dev/null 2>&1’ PARAMETER1 ‘&’ INTO UXCMD
CALL ‘SHCMD’ UXCMD
COMPRESS ‘script1 1>/dev/null 2>&1’ PARAMETER2 ‘&’ INTO UXCMD
CALL ‘SHCMD’ UXCMD
COMPRESS ‘script1 1>/dev/null 2>&1’ PARAMETER3 ‘&’ INTO UXCMD
CALL ‘SHCMD’ UXCMD

script1 does : a., runs natural program2
b., unix sort
c., runs natural program 3.

ERROR LOG:

NAT3048 File / USERID not available at open time.
NAT3048 File / USERID not available at open time.
NAT3048 File / USERID not available at open time.
NAT3048 File / USERID not available at open time.

********** program1 START ***********

NAT3048 File / USERID not available at open time.
NAT3048 File / USERID not available at open time.

I can see the expected results only from last “CALL ‘SHCMD’” (parameter3) and several NAT3048 error messages you can see above.

Can you advice some one? Thankx in advance!

I guess your script1 looks like:

natural batch bp=natbp parm=natparm db=1 stack="(logon LIBRARY;PROGRAM2;fin)"
sort ...
natural ...

Make sure that a unique User-ID is given to adabas. This can be done by setting etid to the Unix process id.

For example:

natural batch bp=natbp parm=natparm db=1 etid=$$ stack="(logon LIBRARY;PROGRAM2;fin)"

Yes, I have tried it and it’s really solve the problem.

Thank you very much Matthias!:smiley:

I’m also working on Natural@Solaris, so feel free to ask in case of problems.
But it would be good to post in the “Open Systems”-forum.