XYGATE Compliance PRO (XSW) Reference Manual

XYGATE
®
Compliance PRO
Reference Manual
Appendix C: XSW Host Macros
XYPRO Technology Corporation 247 Proprietary and Confidential
C4: XSW_DATETIME_MAKE
XSW_DATETIME_MAKE allows relative dates to be included when other macros,
such as XSW_AUDIT_REPORT, are used. This macro calculates 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 passed to the
XSW_AUDIT_REPORT macro as selection criteria that can be used to generate a
report.
Syntax:
XSW_DATETIME_MAKE <# of days in past>
Example (In a TACL macro):
?tacl macro
#frame
[#push
t_t1
t_t2
]
XSW_datetime_make 7
== put date computed and time of 00:00 into t_t1
#set t_t1 [XSW_dt_year4]-[XSW_dt_month]-[XSW_dt_day] 00:00
XSW_datetime_make 1
== put date computed and end time of 23:59 into t_t2
#set t_t2 [XSW_dt_year4]-[XSW_dt_month]-[XSW_dt_day] 23:59
== invoke XSW_audit_report macro with computed date range for first params.
[XSW_audit_report
[t_t1] == from_date + from_time
[t_t2] == to_date + to_time
]
#unframe
This macro runs the XSW_AUDIT_REPORT for the previous week.