-
Notifications
You must be signed in to change notification settings - Fork 9
/
IRRXTST.rexx
executable file
·23 lines (23 loc) · 1.84 KB
/
IRRXTST.rexx
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
/* REXX */
/* Basic IRRXUTIL example to pull in class and profile and spit out */
/* basic RACF info. */
say "Full class name?"
parse upper pull class
say "Profile?"
parse upper pull profile
myrc=IRRXUTIL("EXTRACT",class,profile,"RACF","","FALSE")
/* error handling */
if (word(myrc,1)<>0) then do
say "MYRC="myrc
say "An error occurred - probably no profile"
exit 1
end
/* output */
say "Class: "RACF.CLASS
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