Option RA.3.G (Compare IDs) can be used to view a matrix of permits, side by side the access level of the selected groups. You just enter up to 4 group IDs and select option Compare access through permits. See manual. With relatively easy copy/pasting you may extend this to larger numbers of group names, but not supporting masking. Find the generated CARLa by typing the RESULTS command in the command line after closing the comparison.
Alternatively, you could use newlist type=racf_access to dump permits into a flat file, like so
newlist type=racf_access pl=0
select class<>group id=AD*
sortlist id access class profile
Transfer the resulting data set to your workstation, open with Excel or LibreOffice Calc. Use the pivot tabel wizard to build a matrix of groups by class/profile. Or go for Python.
If you're averse to sending RACF data to laptops, look at the Cross Table Generator I wrote. It was intended as a prototype for a CARLa extension of the SUMMARY command, but never made it to the short list (very short list).
------------------------------
Rob van Hoboken
------------------------------