11.07.2015 Views

Caché ObjectScript Reference - InterSystems Documentation

Caché ObjectScript Reference - InterSystems Documentation

Caché ObjectScript Reference - InterSystems Documentation

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

$ZUTIL(133) (legacy function)1. Calling $ZUTIL(133,5) with the value parameter increments or decrements the counterby the specified value.cvaltnumcnumvalueReturns the incremented (or decremented) value of the counter.The relative number of the metric counter table.The relative number of the counter within the table.Optional — Increment or decrement the specified counter by value. Thisincrement is specified as a signed or unsigned integer. To decrement acounter, specify a negative number. If you specify a decimal number, onlythe integer portion is applied, and the fractional portion is ignored. If valueis omitted, $ZUTIL(133,5) increments by 1.$ZUTIL(133,6)rval=$ZUTIL(133,6,tnum,cnum,value)Calling $ZUTIL(133,6) without the value parameter returns the current value of the specifiedcounter. Calling $ZUTIL(133,6) with the value parameter sets the counter to the specifiedvalue. $ZUTIL(133,6) is commonly used for setting the initial value of a counter; if unset,the initial value of a counter is always zero.rvaltnumcnumvalueReturns the value of the counter before being changed.The relative number of the metric counter table, as returned by$ZUTIL(133,1).The relative number of the counter within the table.Optional — Set the specified counter to value.$ZUTIL(133,8)status=$ZUTIL(133,8,n)The $ZUTIL(133,8) function enables or disables all $ZUTIL(133) functions except itself.When metrics are disabled, all $ZUTIL(133) function calls will return 0 or null (i.e., theyare treated as a no-op).<strong>Caché</strong> <strong>ObjectScript</strong> <strong>Reference</strong> 793

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!