-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathDATASET.rexx
20 lines (19 loc) · 1.39 KB
/
DATASET.rexx
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
/* REXX */
/* Basic IRRXUTIL example to pull in dataset profile and spit out */
/* basic RACF info. z/OS 2.4 and higher only */
PROFILE = 'SYS1.PARMLIB'
myrc=IRRXUTIL("EXTRACT","DATASET",profile,"RACF","","MATCH")
/* error handling */
if (word(myrc,1)<>0) then do
say "MYRC="myrc
say "An error occurred - probably no profile"
exit 1
end
/* output */
say "Profile: "RACF.PROFILE
say "Owner: "RACF.BASE.OWNER.1
say "UACC: "RACF.BASE.UACC.1
Say "ACL:"
do a=1 to RACF.BASE.ACLCNT.REPEATCOUNT
Say " "||RACF.BASE.ACLID.a||":"||RACF.BASE.ACLACS.a
end