resetoccurrencetotal
The resetoccurrencetotal function allows you to reset occurrencetotal to zero so you can determine if a particular block occurred in the current iteration of a group, as opposed to learning how many times the translator has encountered a specified block in the course of processing the data on either the input or output side of a map.
All modes of operation are exercised by SWIFT MX and FIN maps in the resetoccurrencetotal extended rule. FIN maps reference the traditional usage (%recordname) of the ResetOccurrenceTotal function while the MX maps reference can also reference the group name ($group).
Note: The group name usage is reserved for the XML syntax only, because of how the blocks are inserted into the map structure during the compilation process to handle the XML start and end tags in an XML document.
Syntax
resetoccurrencetotal(%recordname);
Note: The syntax %recordname indicates a record that is referenced by name.
Example
An example of this function follows:
resetoccurrencetotal(%myRec);
//This specifies that the Occurrencetotal for the myRec record will be set to
//zero.