XYGATE Access Control Reference Manual
XYGATE
®
 Access Control Reference Manual 
Appendix E: XAC Host Macros 
XYPRO Technology Corporation  259  Proprietary and Confidential 
E10:  XAC_DATETIME_MAKE 
XAC_DATETIME_MAKE allows relative dates to be included when other macros, such 
as XAC_AUDIT_REPORT, are used. This macro will calculate dates to establish a 
range of dates in the past equal to the <days> entered. The macro can be run on the 
command line or used in a TACL macro to create batch jobs. In the example below, 
the macro is run twice: once to calculate the date seven days ago and once to 
calculate the date one day ago. These values are then passed to the 
XAC_AUDIT_REPORT macro as selection criteria that can be used to generate a 
report. 
Syntax: 
XAC_DATETIME_MAKE <# of days in past> 
Example (In a TACL macro): 
?tacl macro 
#frame 
[#push 
 t_t1 
 t_t2 
] 
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. 
[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 
 $SYSTEM.XYGATEAC.audit == auditlog 
 $s.#xac.report   == output 
 SESSION     == sortorder 
 0       == debug flag 
 *       == report title 
 *       == user input 
 *       == ip address 
 *       == custom columns 
 *       == custom sort 
 132      == custom width 
 59      == custom lines 
] 
#unframe 
This macro will run the XAC_AUDIT_REPORT for the previous week, showing all 
sessions. 










