# NSC---L used to check user-access to library. may have an error.

**URL:** <https://techcommunity.softwareag.com/t/nsc-l-used-to-check-user-access-to-library-may-have-an-error/178368>\
**Category:** Forum\
**Tags:** Adabas-Natural, Natural, Natural-Utilities\
**Created:** [September 2, 2014, 3:39pm UTC](https://techcommunity.softwareag.com/t/nsc-l-used-to-check-user-access-to-library-may-have-an-error/178368 "2014-09-02T15:39:09Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Dion\_Kejlberg](https://sea1.discourse-cdn.com/techcommunity/user_avatar/techcommunity.softwareag.com/dion_kejlberg/32/525_2.png) [@Dion\_Kejlberg](https://techcommunity.softwareag.com/u/Dion_Kejlberg)\
**Post date:** [September 2, 2014, 3:39pm UTC](https://techcommunity.softwareag.com/t/nsc-l-used-to-check-user-access-to-library-may-have-an-error/178368/1 "2014-09-02T15:39:09Z")

</div>

Hi

When i use PGM—L to test NSC—L I get the right answer when I uses my own user-id as parameter. If I use any other user-id i get returncode 828 (You may not logon to ‘SYSSEC’).  
I had the other user doing the same, and had the same result, only the user had acces but not me.

It looks like NSC—L may be using \*USER and not the parameter.  
Using \*USER as default if parameter is not filled is fine, but not if user-id is valid.

The reason why I’m using this module is that LOGONUS will show the current library when there is an error trying to logon to another library.  
Using NSC—L in your system would be working, but not good for testing.

---

<div class="post-metadata">

**Author:** ![Ralph\_Zbrog](https://sea1.discourse-cdn.com/techcommunity/user_avatar/techcommunity.softwareag.com/ralph_zbrog/32/78_2.png) [@Ralph\_Zbrog](https://techcommunity.softwareag.com/u/Ralph_Zbrog)\
**Post date:** [September 3, 2014, 10:03pm UTC](https://techcommunity.softwareag.com/t/nsc-l-used-to-check-user-access-to-library-may-have-an-error/178368/2 "2014-09-03T22:03:40Z")

</div>

I suspect that Natural Security allows execution of NSC—L for one’s own user ID, but blocks it for other IDs if you are not authorized for access to SYSSEC. You may be able to circumvent this by copying NSC—L to a library in your STEPLIB chain. Otherwise I think you’ll need to be linked to SYSSEC.

Sorry. I cannot test this myself as I don’t have the necessary access to a secured Natural environment at the moment. Perhaps if you posted source member PGM—L to this thread …

---

<div class="post-metadata">

**Author:** ![Dion\_Kejlberg](https://sea1.discourse-cdn.com/techcommunity/user_avatar/techcommunity.softwareag.com/dion_kejlberg/32/525_2.png) [@Dion\_Kejlberg](https://techcommunity.softwareag.com/u/Dion_Kejlberg)\
**Post date:** [September 4, 2014, 9:13am UTC](https://techcommunity.softwareag.com/t/nsc-l-used-to-check-user-access-to-library-may-have-an-error/178368/3 "2014-09-04T09:13:31Z")

</div>

Source for testing NSC—L.  
[pgm—l.txt](https://techcommunity.softwareag.com/uploads/short-url/uJfcQzSbNCfJPpZfdv63FSGecoD.txt) (5.09 KB)

---

<div class="post-metadata">

**Author:** ![Ralph\_Zbrog](https://sea1.discourse-cdn.com/techcommunity/user_avatar/techcommunity.softwareag.com/ralph_zbrog/32/78_2.png) [@Ralph\_Zbrog](https://techcommunity.softwareag.com/u/Ralph_Zbrog)\
**Post date:** [September 5, 2014, 9:44pm UTC](https://techcommunity.softwareag.com/t/nsc-l-used-to-check-user-access-to-library-may-have-an-error/178368/4 "2014-09-05T21:44:16Z")

</div>

Thanks for posting PGM—L, but I get the same error 828, even when NSC—L is in my own library.

Years ago I embedded a CALLNAT to NSC—L in a utility which was used by the entire development team, none of whom had access to SYSSEC. I’ll let you know if I remember how I got that to work.

I suggest a call to SAG Support.

---

<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, 3:31pm UTC](https://techcommunity.softwareag.com/t/nsc-l-used-to-check-user-access-to-library-may-have-an-error/178368/5 "2021-04-02T15:31:58Z")

</div>

Closed on April 2, 2021, 3:31pm UTC


