Adam,
Connects
is a repeated field, but Jeroen found an undocumented side effect that does not apply to normal RACF fields. Normally, you can only print a field if you have SELECTED the segment that this field is part of. You would have found out when you added CGGRPNM (the list of connect groups) into the SORTLIST command: CGGRPNM would have remained empty because this field exists in the BASE segment.
CONNECTS, however, combines information from USER and GROUP profiles, even when these are not in the SELECT command, and therefore is able to show the connect info even though it is missing in the CSDATA segment. Without more parameters, CONNECTS is efficient. It only looks for the user's connect groups which it found in the BASE segment. But the base segment was skipped, so using UNIVERSAL, Jeroen ensured that ALL users and groups are processed... That is ... wow... nice.
You mentioned that the :CGGRPNM
lookup field only showed the first connect group name. Yes,
lookup is possible to a
non-repeated field in the BASE segment, and if you apply it to a repeated field, it only shows the first entry (without warning). This is known
feature.
------------------------------
Rob van Hoboken
------------------------------