Hello,
I don't have a problem as such more of a query as to why this is needed.
I have created some CARLa to extract users that have:
- been inactive for more than 90 days.
- have a TSO segment.
- are marked as Human under a custom field - CSDATA.
to achieve this, I needed to use 3 NEWLISTS and the PROFLIST keyword to pass the select criteria from one NEWLIST to the other. Code below.
/* Print out list of all inactive TSO Human users on the system */
Newlist Type=RACF Name=#CSDATA NoPage
Select Class=User Segment=CSData NonHuman=(Human)
Newlist Type=RACF Name=#TSO Outlim=0 Proflist=#CSData
Select Class=User Segment=TSO
Sortlist Segment
Newlist Type=RACF PageLength=0 NoDup Proflist=#TSO ,
TopTitle="List of all the Inactive users on the system" ,
SubTitle="ID has not been used in the last 3 months"
Define #Total("Total", 5) Count
Select Class=User Segment=BASE LJDATE<Today-90
Sortlist LJDATE(NonDisplay) ,
Key("MF ID", 8) ,
Name(20) ,
:TLPROC ,
DFLTGRP("Def Group", 9) ,
LJDATE("Last Con Dt", 11) ,
:NonHuman("NonHuman", 8)
Summary * Complex(7) #Total(>1)
My question is why I need to include the SORTLIST SEGMENT on the 2nd NEWLIST. If I don't use a SORTLIST my 3rd NEWLIST output does not filter on HUMAN
------------------------------
Mark Beach
------------------------------