XYGATE User Authentication Reference Manual
XYGATE
®
User Authentication
™
Reference Manual
Appendix C: XUA Macros
XYPRO Technology Corporation 293 Proprietary and Confidential
C3: XUA_DATETIME_MAKE
The XUA_DATETIME_MAKE macro will calculate a date in the past equal to the
<days> entered. For example, if you enter 7, the macro will calculate the date seven
days prior to the current date. An entry of 30 or 31 would be one month into the past.
You can enter up to 3000 days in the past.
The macro can be run on the command line or used in a TACL macro. In the example
below, the macro is run twice: once to calculate the date seven days in the past
(line 8), and once to calculate the date one day in the past (line 13). These values are
put together and then passed to the XUA_AUDIT_REPORT macro beginning on
line 19 as selection criteria to generate a report.
Syntax:
XUA_datetime_make <# of days in past>
Example: (In a TACL macro)
?tacl macro
#frame
[#push
t_from_date
t_to_date
]
== compute date 7 days back
XUA_datetime_make 7
== put date computed and time of 00:00 into t_from_date
#set t_from_date [XUA_dt_year4]-[ XUA_dt_month]-[ XUA_dt_day]
== t_to_date is empty
== compute date and time 1 day back
XUA_datetime_make 1
== put computed end date into t_to_date
#set t_to_date [XUA_dt_year4]-[ XUA_dt_month]-[ XUA_dt_day]
== invoke XUA_audit_report macro with computed date range for first four params.
[XUA_AUDIT_REPORT
2003-02-01 == START DATE
00:00 == START TIME
2003-02-10 == END DATE
23:59 == END TIME
*,* == user format: #,#
* == login name format group.user
* == Subject terminal
* == IP Address
* == Subject System
* == UAGROUP
* == Comment
ALL == result-type
$DISCB.P25SNTST.AUDIT == audit file
$s.#XUA.report == output file
TARGET == sortorder
NO == Delete Comments
BOTH == Production/Test results
* == Target Login name
*.* == Target Userid
* == OUTCOME
NO == Final Outcomes Only
0 == DEBUG [0=OFF; 1=ON]
]
#unframe
8
19
13
The letter "T" can be used to compute for
TODAY. In this example replace 7 by the letter T.