XYGATE Merged Audit Reference Manual

Table Of Contents
XYGATE Merged Audit
®
Reference Manual
Appendix E: XMA Host Macros
XYPRO Technology Corporation 208 Proprietary and Confidential
E7: UPDSTAT
This macro performs the update statistics function for your XMA SQL tables. Use this
macro to run a regularly scheduled update via Netbatch. You do not have to make any
changes to this file.
Sample UPDSTAT File
== routine to update statistics from a batch file
?tacl routine
#frame
[#if [#variableinfo /existence/ :XMA_seg] |then|
== do not attach, already present
|else|[#if [#fileinfo /existence/ $SECURE.XYGATEMA.XMA] |then|
run $SECURE.XYGATEMA.XMA install
|else|
#output Unable to locate $SECURE.XYGATEMA.XMA - Update Statistics failed
#unframe~;#return
]]
#push #defaults
#set #defaults $SECURE.XYGATEMA
[#if [mamgrtcl UPDSTATS NEWDEFS -1 $system.system.sqlci &
$DATAC.P28HHUTB.DBOUT] |then|
#output UPDATE STATISTICS successful
|else|
#output UPDATE STATISTICS failed
]
#unframe