Hi Sandra
zSecure can use indirect reference or lookup to find CSDATA values. This is described here. There are two flavors of lookup:
ID lookup This is used if you have a field containing a user ID or a group name, you could find the value of a CSDATA field $DEPT for the user causing an alert by adding
user:$DEPT
to the alert skeleton. This type of lookup does not work for fields containing DATASET or general resource profiles.
Object property lookup zSecure associates a security object to events. For SMF records describing data set access, that would be the DATASET profile protecting the data set. For SMF records logging a RACF command, it would be the profile that was changed by the RACF command. For RACINIT, it would be the user that logs on.
For NEWLIST TYPE=RACF or RACF_ACCESS, the current profile is the security object. You can display attributes of the security profile by using the implicit lookup for the attribute:
newlist type=racf
select class=user segment=omvs uid=0
sortlist key("Userid",8) :special :operations :tmsize :tlsize :name :$DEPT
This sample selects OMVS segments for the super users, and prints the special, operations and name attributes from the base segment, the maxsize and lastsize from the TSO segment, by implicit lookup. If you have a CSDATA field $DEPT, it would be retrieved too.
Similarly, you could add information about data sets to SMF reports, that's what most alerts are based on:
newlist type=smf
select event=access class=dataset
sortlist date(7) time(4) dataset intent :uacc :$dept
You may also combine the two lookup types to find the $DEPT of the subject and the object:
newlist type=smf
select event=access class=dataset
sortlist date(7) time(4) user user:$DEPT("User dept") dataset intent :uacc :$DEPT("Application dept") :owner:$DEPT("RACF Owner's dept")
If all this works, it is up to you to create installation defined alert skeletons, by copying the individual alerts that you need, assigning a new alert number starting with 4000, and modifying the skeleton to add more fields to the message. Take guidance from the way user:name was shown in the alert emails, similarly you could add your $DEPT values.
------------------------------
Rob van Hoboken
------------------------------