# Bug in USR0330N?

**URL:** <https://techcommunity.softwareag.com/t/bug-in-usr0330n/61126>\
**Category:** Forum\
**Tags:** Adabas-Natural, Natural, Natural-on-Linux, Natural-on-Windows-Unix\
**Created:** [June 14, 2006, 5:11pm UTC](https://techcommunity.softwareag.com/t/bug-in-usr0330n/61126 "2006-06-14T17:11:41Z")\
**Posts on this page:** 13\
**Page:** 1

<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:** [June 14, 2006, 5:11pm UTC](https://techcommunity.softwareag.com/t/bug-in-usr0330n/61126/1 "2006-06-14T17:11:41Z")

</div>

According to [a former posting regarding FILEDIR.SAG](http://natural.forums.softwareag.com/viewtopic.php?t=364) I’ve recommended USR0330N to a colleague, who wants to find out the user-ID of Natural sources.

But my colleague said, that USR0330N delivers wrong user-IDs for the catalogued part. And he’s right. We’re using NAT 6.1.1.17 on Solaris and on Windows XP and on both environments, the catalog User-ID is wrong.

Can anyone reproduce this error? To make a quick test, just try out the SAG-delivered USR0330P for a Natural object with different user-IDs for the source and the catalogued file.

Thanks,

Matthias

---

<div class="post-metadata">

**Author:** ![Wilfried\_B](https://sea1.discourse-cdn.com/techcommunity/user_avatar/techcommunity.softwareag.com/wilfried_b/32/83_2.png) [@Wilfried\_B](https://techcommunity.softwareag.com/u/Wilfried_B)\
**Post date:** [June 14, 2006, 5:49pm UTC](https://techcommunity.softwareag.com/t/bug-in-usr0330n/61126/2 "2006-06-14T17:49:07Z")

</div>

Try USR2018 instead. In the documentation of USR033N it reads that it is outdated!

---

<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:** [June 14, 2006, 7:17pm UTC](https://techcommunity.softwareag.com/t/bug-in-usr0330n/61126/3 "2006-06-14T19:17:09Z")

</div>

[quote="Wilfried B

---

<div class="post-metadata">

**Author:** ![Wilfried\_B](https://sea1.discourse-cdn.com/techcommunity/user_avatar/techcommunity.softwareag.com/wilfried_b/32/83_2.png) [@Wilfried\_B](https://techcommunity.softwareag.com/u/Wilfried_B)\
**Post date:** [June 14, 2006, 9:55pm UTC](https://techcommunity.softwareag.com/t/bug-in-usr0330n/61126/4 "2006-06-14T21:55:34Z")

</div>

Sorry, but I am on mainframe. And the userexit is not marked as OS specific. So I think, the user exit must be the same :?:

This is what the doc reads:

```auto
Read Natural Object Directory NAT                
.                                                                    
Name of Interface ....... USR0330N /* Cataloged Interface       
Name of Program ......... USR0330P /* Example for the Programmer
.                                                                    
Function ................ Get directory information about a saved   
                           and/or cataloged Natural object.          
                           NOTE: For version NAT23 or above use      
                                 USR2018N                            
.                                                                    
Keywords ................ DIRECTORY                                 
```

and USR2018:

```auto
Read Natural Object Directory NAT                 
.                                                                     
Name of Interface ....... USR2018N /* Cataloged Interface        
Name of Program ......... USR2018P /* Example for the Programmer 
.                                                                     
Function ................ Get directory information about a saved    
                           and/or cataloged Natural object.           
.                                                                     
Keywords ................ DIRECTORY                                  
```

If you don’t have USR2018N, my SAG universe is destroyed 😢

---

<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:** [June 14, 2006, 10:06pm UTC](https://techcommunity.softwareag.com/t/bug-in-usr0330n/61126/5 "2006-06-14T22:06:20Z")

</div>

[quote="Wilfried B

---

<div class="post-metadata">

**Author:** ![Chad\_Scott](https://avatars.discourse-cdn.com/v4/letter/c/b3f665/32.png) [@Chad\_Scott](https://techcommunity.softwareag.com/u/Chad_Scott)\
**Post date:** [June 14, 2006, 10:31pm UTC](https://techcommunity.softwareag.com/t/bug-in-usr0330n/61126/6 "2006-06-14T22:31:03Z")

</div>

I just tried the running the sample provided for USR0330 on Windows using NAT6.1.1.19 and it seems to return the correct results. What was the “wrong” user-id being returned? Was it from a different object? or corrupt?

---

<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:** [June 15, 2006, 12:52am UTC](https://techcommunity.softwareag.com/t/bug-in-usr0330n/61126/7 "2006-06-15T00:52:29Z")

</div>

> [@Chad Scott](#):
>
> What was the “wrong” user-id being returned? Was it from a different object? or corrupt?

The User-ID of the source is returned twice. It is returned as the source User-ID AND catalog User-ID.

---

<div class="post-metadata">

**Author:** ![Douglas\_Kelly](https://sea1.discourse-cdn.com/techcommunity/user_avatar/techcommunity.softwareag.com/douglas_kelly/32/102_2.png) [@Douglas\_Kelly](https://techcommunity.softwareag.com/u/Douglas_Kelly)\
**Post date:** [June 15, 2006, 4:07am UTC](https://techcommunity.softwareag.com/t/bug-in-usr0330n/61126/8 "2006-06-15T04:07:42Z")

</div>

Natural 6.1.1.09 on Windows seems to be correct here too. No USR2018N found in SYSEXT.

---

<div class="post-metadata">

**Author:** ![Chad\_Scott](https://avatars.discourse-cdn.com/v4/letter/c/b3f665/32.png) [@Chad\_Scott](https://techcommunity.softwareag.com/u/Chad_Scott)\
**Post date:** [June 15, 2006, 4:37am UTC](https://techcommunity.softwareag.com/t/bug-in-usr0330n/61126/9 "2006-06-15T04:37:36Z")

</div>

Sorry Matthias, I should have read your original post more carefully…

It does still return the user-id from the source for both source and object in NAT6.1.1.19!

Have you had a chance to open a support request?

---

<div class="post-metadata">

**Author:** ![KlaBue](https://avatars.discourse-cdn.com/v4/letter/k/848f3c/32.png) [@KlaBue](https://techcommunity.softwareag.com/u/KlaBue)\
**Post date:** [June 15, 2006, 8:53pm UTC](https://techcommunity.softwareag.com/t/bug-in-usr0330n/61126/10 "2006-06-15T20:53:48Z")

</div>

NAT 6.2.1 on Ithanium/HP-UX: error still exist

---

<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:** [June 16, 2006, 3:00am UTC](https://techcommunity.softwareag.com/t/bug-in-usr0330n/61126/11 "2006-06-16T03:00:34Z")

</div>

> [@Chad Scott](#):
>
> Have you had a chance to open a support request?

No, but my system administrator. I’ll see him on Monday …

Thanks to all for testing! 🙂

---

<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:** [June 19, 2006, 2:42pm UTC](https://techcommunity.softwareag.com/t/bug-in-usr0330n/61126/12 "2006-06-19T14:42:10Z")

</div>

> [@Matthias](#):
>
> The User-ID of the source is returned twice. It is returned as the source User-ID AND catalog User-ID.

The next interesting thing is:  
If I copy an Natural-Object from the mapped environment to my local environment via SPoD, all Properties are kept (Source User ID, Source date and Catalog date). The only exeption is the Catalog User ID.

Could it be, that the USR0330N-bug also causes this error?

---

<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:40pm UTC](https://techcommunity.softwareag.com/t/bug-in-usr0330n/61126/13 "2021-04-02T14:40:42Z")

</div>


