How to create a top generic racf profile from rexx

439 Views Asked by At

So i'm definig users to racf on a z/OS (ADCD version at my university) using a rexx script. Therefore i want to create top generic profiles for the users in order to secure their datasets. Say i'm creating a user called TEST1. Therefore i would use

ADDSD 'test1.*' UACC(NONE)

to create the top generic profile. If i issue the command from tso all works fine. But if i issue the command from my rexx skript, racf creates a profile named "myusername.test1.* instead of "test1.*" So somehow my username is added as the HLQ when creating the profile. Does any one know why that happens and how to fix it? Thanks.

1

There are 1 best solutions below

0
On

issuing "PROFILE NOPREFIX" before the command solves the problem. TSO Adds your prefix to any dataset name that is not fully qualified. At the end of the skript you should reset your profile prefix with

"PROFILE PREFIX("USERID()")"

thanks cschneid