# NAT3048 File / USERID  not available at open time.

**URL:** <https://techcommunity.softwareag.com/t/nat3048-file-userid-not-available-at-open-time/62202>\
**Category:** Forum\
**Tags:** Adabas-Natural, Natural, Natural-on-Mainframes\
**Created:** [May 14, 2007, 9:12pm UTC](https://techcommunity.softwareag.com/t/nat3048-file-userid-not-available-at-open-time/62202 "2007-05-14T21:12:15Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![lajos](https://avatars.discourse-cdn.com/v4/letter/l/cdc98d/32.png) [@lajos](https://techcommunity.softwareag.com/u/lajos)\
**Post date:** [May 14, 2007, 9:12pm UTC](https://techcommunity.softwareag.com/t/nat3048-file-userid-not-available-at-open-time/62202/1 "2007-05-14T21:12:15Z")

</div>

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!

---

<div class="post-metadata">

**Author:** ![Matthias1](https://avatars.discourse-cdn.com/v4/letter/m/9fc348/32.png) [@Matthias1](https://techcommunity.softwareag.com/u/Matthias1)\
**Post date:** [May 15, 2007, 12:31pm UTC](https://techcommunity.softwareag.com/t/nat3048-file-userid-not-available-at-open-time/62202/2 "2007-05-15T12:31:32Z")

</div>

I guess your script1 looks like:

```auto
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:

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

---

<div class="post-metadata">

**Author:** ![lajos](https://avatars.discourse-cdn.com/v4/letter/l/cdc98d/32.png) [@lajos](https://techcommunity.softwareag.com/u/lajos)\
**Post date:** [May 15, 2007, 10:13pm UTC](https://techcommunity.softwareag.com/t/nat3048-file-userid-not-available-at-open-time/62202/3 "2007-05-15T22:13:21Z")

</div>

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

Thank you very much Matthias!😃

---

<div class="post-metadata">

**Author:** ![Matthias1](https://avatars.discourse-cdn.com/v4/letter/m/9fc348/32.png) [@Matthias1](https://techcommunity.softwareag.com/u/Matthias1)\
**Post date:** [May 16, 2007, 9:23pm UTC](https://techcommunity.softwareag.com/t/nat3048-file-userid-not-available-at-open-time/62202/4 "2007-05-16T21:23:36Z")

</div>

> [@lajos](#):
>
> Yes, I have tried it and it’s really solve the problem.
> 
> Thank you very much Matthias!😃

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.

---

<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:41pm UTC](https://techcommunity.softwareag.com/t/nat3048-file-userid-not-available-at-open-time/62202/5 "2021-04-02T14:41:11Z")

</div>


