Yes, that looks good. :-)
IBM - Software Development and Level 3 Support Manager IBM Security zSecure Suite
Original Message:
Sent: Mon May 08, 2023 10:41 AM
From: Michael Nielsen
Subject: Understanding the behavioral differences between PROFLIST and LIKELIST
Thanks both for the explanations. This has clarified a lot for me.
This is the CARLa run in its current state.
mergelist
newlist type=smf dd=ckreport nopage retain
def RcdDat(3,char,'RcdDat') as smf_field(11,3)
select class=user, RcdDat='xxxxxF'x,
EVENT=RACINIT, EVENT<>RACINIT(0,8,13,12,32,40)
newlist type=smf dd=ckreport nopage retain
select class=user, RcdDat='xxxxxF'X, EVENT=RACINIT(8,13)
newlist type=smf dd=ckreport nopage retain
select type=80 class=dataset, RcdDat='xxxxxF'X
newlist type=smf dd=ckreport nopage retain
select type=80 class<>(user,dataset), RcdDat='xxxxxF'X
newlist type=smf dd=ckreport nopage retain
select type=80, RcdDat='xxxxxF'X, class=(FSOBJ,PROCESS,FSSEC,FSACCESS,FSEXEC,UNIXPRIV,FACILITY,SURROGAT)
exclude unix_function=(chdir,dub,undub_exit)
endmerge
Using the information and examples you've provided, this could be split into two groups of newlists- Type=RACINIT and Type=80. If I create dummy newlists it would look similar to this.
mergelist
newlist type=smf name=racinit outlim=0
def RcdDat(3,char,'RcdDat') as smf_field(11,3)
select class=user, EVENT=RACINIT, RcdDat='xxxxxF'x
newlist type=smf dd=ckreport nopage retain
select likelist=racinit, EVENT<>RACINIT(0,8,13,12,32,40)
newlist type=smf dd=ckreport nopage retain
select likelist=racinit, EVENT=RACINIT(8,13)
newlist type=smf name=type80 outlim=0
select type=80, RcdDat='xxxxxF'x
newlist type=smf dd=ckreport nopage retain
select likelist=type80, class=dataset
newlist type=smf dd=ckreport nopage retain
select likelist=type80, class<>(user,dataset)
newlist type=smf dd=ckreport nopage retain
select likelist=type80, class=(FSOBJ,PROCESS,FSSEC,FSACCESS,FSEXEC,UNIXPRIV,FACILITY,SURROGAT)
exclude unix_function=(chdir,dub,undub_exit)
endmerge
Additional cleanup could be done as well.
-the report is always for yesterday and the SMF file is for yesterday, so the RcdDat selection criteria could be dropped
-I believe the class=user selection could be dropped from the RACINIT searches
-class<>(user,dataset) was intended to capture general resources and can (should?) be written as class=general
Does this seem like an appropriate approach? Is there anything else you would suggest?
------------------------------
Michael Nielsen
Original Message:
Sent: Thu May 04, 2023 12:28 PM
From: Michael Nielsen
Subject: Understanding the behavioral differences between PROFLIST and LIKELIST
We have a batch job step which processes a CARLa run containing 5 separate NEWLIST queries against SMF. I am looking to make this as efficient as possible because the run averages 60 minutes of CPU time to process. To that end I am looking to pre-select SMF records that qualify for any of the 5 NEWLIST statements and only read through the entirety of the SMF records a single time.
My understanding/assumption is that the CKRCARLA program is currently reading all the input SMF records 5 separate times for the five separate NEWLISTs.
Reading the CARLa Command Reference v2.5.0, it seems that-
· LIKELIST refers to, and reuses, SELECT/EXCLUDE criteria specified in another NEWLIST and appends any SELECT/EXCLUDE criteria specified in the current NEWLIST to that. It will read through the entirety of the input data provided using that combined selection criteria.
· PROFLIST takes the results from a specified NEWLIST (stored in memory) and filters that down further using the SELECT/EXCLUDE criteria in the current NEWLIST.
Is my assumption correct?
Am I interpreting the manual correctly?
------------------------------
Michael Nielsen
------------------------------