Calling RACF from NATUEX1

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?

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

Thanks Wolfgang. I shall investigate.