Hi Madeline,
from your message, I find it hard to fully understand what your requirement for your report is. You state that you want to use mask, but your CARLa code samples do not contain any masking characters (* or %). Do you want to report the permitted access for the groups named GROUP01, GROUP02, and GROUP03?
In that case you can code:
NEWLIST TYPE=RACF
SELECT CLASS=GROUP SEGMENT=BASE KEY=(GROUP01,GROUP02,GROUP03)
SORTLIST KEY(8,"Group") INSTDATA
Or did you mean to report the permitted access for the groups starting with the prefix GROUP01, GROUP02, and GROUP03. In that case you can code:
NEWLIST TYPE=RACF
SELECT CLASS=GROUP SEGMENT=BASE (MASK=GROUP01* or MASK=GROUP02* or MASK=GROUP03*)
SORTLIST KEY(8,"Group") INSTDATA
or alternatively because the group name cannot exceed 8 characters:
NEWLIST TYPE=RACF
SELECT CLASS=GROUP SEGMENT=BASE (MASK=GROUP01% or MASK=GROUP02% or MASK=GROUP03%)
SORTLIST KEY(8,"Group") INSTDATA
However, there might be another way to report the permission to group profiles. zSecure Admin supports the newlist type REPORT_SCOPE that can be used to report the accesses that are permitted to user or group ID.s In the zSecure User Interface, you can access and use the Scope/permit report with option RA.3.4.
To report the permissions to the groups GROUP01, GROUP02, and GROUP03 in print format, specify the following options.
zSecure Suite - RACF - Report Scope/permit
Command ===> __________________________________________________________________
Id . . . . . . . . GROUP01 GROUP02 GROUP03 ________ ________ ________
Specify type of authorization
1 1. Direct permit to the Id (Id on access list)
2. Direct permit or Connect (Id or Connect Group on access list)
3. Scope (access or administrative authority by any means)
Report options
Minimum access to show Specify output options
8 1. Execute 2. Read Show resources covered by profile
3. Update 4. Control Including data sets on scratch tapes
5. Alter 6. Admin
7. Owner 8. Show all / Output in print format
RACLIST merged view Start each Id on a new page
Select profiles to include. Blank profile field(s) to include missing profiles
Data set HLQ . . . * (qualifier or filter, * for all, blank for none)
Dataset profile . . ____________________________________________ (EGN mask)
Other class . . . . * (class or filter, * for all, blank for none)
Other profile . . . ____________________________________________ (EGN mask)
Pressing Enter results in reporting the permissions to the groups GROUP01, GROUP02, and GROUP03.
If you prefer, you can also manually code a CARLa script. This script could be something along the lines of:
NEWLIST TYPE=REPORT_SCOPE TOPTITLE="GROUP AUTHORIZATION FOR ID: "
SORTLIST ID(PAGE,TOPTITLE) ID:INSTDATA(PAGE,TOPTITLE),
COMPLEX(PAGE,TOPTITLE) STAMP(TOPTITLE),
CLASS PROFTYPE(1) KEY("PROFILE NAME") ACCESS WHEN
REPORT PERMIT=GROUP01 PERMIT=GROUP02 PERMIT=GROUP03
This CARLa sample script produces a report that includes all permissions to the groups GROUP01, GROUP02, and GROUP03.
I hope this answers your question sufficiently.