Johnny Luo wrote:
Recently I've got a new test system and there is no profile in its RACF at
all.
Now I want to set RACF 'protectall',but before that,I should create profile
for all HLQs of data sets in the sytem first.
For a HlQ,I want to:
1,Define a group whose name=HLQ
2,Create a profile for it like HLQ.** and set UACC(read)
Because there are many data sets in the sytem,it's a tiring job.
Now my plan is:
1,list all data sets in system and record all HLQs.
2,Using JCL to issue RACF commands.
However,for each HLQ I need a JCL step and this means I must
copy-and-paste many times.So I want a better way to do this.Maybe
using REXX?
Hope anyone can give me some hints on this.
It is tiring job, no doubt. IMHO it is much to less to define HLQ.**
UACC(READ) for every HLQ.
However if you want it I have one hint to save the work:
RDEF GLOBAL DATASET
RALTER GLOBAL DATASET ADDMEM('**"/READ)
SETR GLOBAL(DATASET)
SETR GLOBAL(DATASET) REFR
The above will give you UACC(READ) for *all* datasets.
Disclaimers:
1. I don't recommend such approach.
2. Check the syntax of the commands, provide missing optional parameters
like OWNER(), etc.
--
Radoslaw Skorupka
Lodz, Poland
----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [EMAIL PROTECTED] with the message: GET IBM-MAIN INFO
Search the archives at http://bama.ua.edu/archives/ibm-main.html