XAC:REPMAC example of rolling over the AUDIT file and generating yesterday's XAC audit report

XAC:REPMAC example of rolling over the AUDIT file and generating yesterday's XAC audit report

Below is a custom REPMAC file. The lines in blue are for customized activities.

?tacl macro
#frame
[#push
t_t1
t_t2

t_t3
t_t4
]
XAC_datetime_make 1
== put date computed and time of 00:00 into t_t1
#set t_t1 [XAC_dt_year4]-[XAC_dt_month]-[XAC_dt_day] 00:00
XAC_datetime_make 1
== put date computed and end time of 23:59 into t_t2
#set t_t2 [XAC_dt_year4]-[XAC_dt_month]-[XAC_dt_day] 23:59
== invoke XAC_audit_report macro with computed date range for first four params.


#set t_t3 [XAC_nextgen aud]
#set t_t4 AU[XAC_dt_year2][XAC_dt_month][XAC_dt_day]
XAC_roll_audit
#newprocess $SYSTEM.SYSTEM.FUP /name/ DUP <$vol-xac>.XYGATEAC.[t_t3],<$vol-archives>.<subvol-archives>.[t_t4],sourcedate,purge

[XAC_audit_report
[t_t1] == from_date + from_time
[t_t2] == to_date + to_time
*.* == user
* == login name
N == display output
* == terminal
* == command
N == violations flag

<$vol-archives>.<subvol-archives>.[t_t4] == audit log file
$S.#xac.rep[XAC_dt_month][XAC_dt_day] == output location
SESSION == sortorder
0 == debug flag
* == report title
* == user input
* == ip address
* == custom columns
* == custom sort
132 == custom width
59 == custom lines
]
#unframe