# Calling RACF from NATUEX1

**URL:** <https://techcommunity.softwareag.com/t/calling-racf-from-natuex1/292830>\
**Category:** Forum\
**Tags:** Adabas-Natural, Natural, Natural-on-Mainframes\
**Created:** [March 7, 2024, 5:33am UTC](https://techcommunity.softwareag.com/t/calling-racf-from-natuex1/292830 "2024-03-07T05:33:55Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Carla\_Savorgnan2](https://avatars.discourse-cdn.com/v4/letter/c/dbc845/32.png) [@Carla\_Savorgnan2](https://techcommunity.softwareag.com/u/Carla_Savorgnan2)\
**Post date:** [March 7, 2024, 5:33am UTC](https://techcommunity.softwareag.com/t/calling-racf-from-natuex1/292830/1 "2024-03-07T05:33:55Z")

</div>

Natural v9.2.1 - Natural Development Server v9.2.1 - z/OS v3.1

We are investigating checking RACF access to a dataset from Natural Exit NATUEX1. The idea is to check if the userid known to NATUEX1 has RACF access to a specific dataset; if the userid does not have access then set Register 15 to 3.

I’m not sure how to call RACF from a Natural Exit. Has anyone done this previously?

---

<div class="post-metadata">

**Author:** ![wolfgang.winter](https://sea1.discourse-cdn.com/techcommunity/user_avatar/techcommunity.softwareag.com/wolfgang.winter/32/17954_2.png) [@wolfgang.winter](https://techcommunity.softwareag.com/u/wolfgang.winter)\
**Post date:** [March 7, 2024, 8:54am UTC](https://techcommunity.softwareag.com/t/calling-racf-from-natuex1/292830/2 "2024-03-07T08:54:57Z")

</div>

Just like you would do from any other Assembler program, issue

`RACROUTE REQUEST=AUTH,STATUS=ACCESS,CLASS='DATASET',ENTITY=<dataset reference>`

Check the [RACF documentation](https://www.ibm.com/docs/en/zos/2.4.0?topic=profiles-example-checking-dataset-class-resource)

---

<div class="post-metadata">

**Author:** ![Carla\_Savorgnan2](https://avatars.discourse-cdn.com/v4/letter/c/dbc845/32.png) [@Carla\_Savorgnan2](https://techcommunity.softwareag.com/u/Carla_Savorgnan2)\
**Post date:** [March 11, 2024, 11:14pm UTC](https://techcommunity.softwareag.com/t/calling-racf-from-natuex1/292830/3 "2024-03-11T23:14:37Z")

</div>

Thanks Wolfgang. I shall investigate.

---

<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:** [September 7, 2024, 11:15pm UTC](https://techcommunity.softwareag.com/t/calling-racf-from-natuex1/292830/4 "2024-09-07T23:15:04Z")

</div>

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.
