You can actually select profiles using fields from different segments in newlist type=racf, but not in a single newlist. You have to use PROFLIST for this.
n type=racf outlim=0 name=exdfltgr
select class=user segment=base dfltgrp<>GROUP99
display key
n type=racf proflist=exdfltgr t="All users with TSO capability"
select class=user segment=tso complex=nmpipl87
display key(8) complex :dfltgrp(8) :ljdate(10) :last_connect_date(10),
:revoke('Revoked',1,8) :revoke_inactive('Inactive',1,8)
You can also get CARLa code like this generated by option RA.U, when you specify a default group name in the Default group field and write a / in front of Segment presence. Press enter and select the TSO segment from the list. This will find only TSO segments when the default group matches the given value.
You can also tweak your newlist type=ID query:
n type=id
select tso=yes complex=ABC
exclude id=USER*
exclude id:dfltgrp=GROUP99 /* use field lookup from id value */
display id complex tso :dfltgrp(8) :ljdate(10) :last_connect_date(10),
:revoke('Revoked',1,8) :revoke_inactive('Inactive',1,8)
------------------------------
Rob van Hoboken
------------------------------