Previous Topic: Exit #1

Next Topic: Exit #3


Exit #2

This exit gives you control immediately following the completion of the standard accounting algorithm calculations and prior to the construction of user sort control fields, as specified by the SORT statement, for each accounting record being processed. This lets you perform tests to verify the time and charge calculations or make unique billing adjustments to any record reaching this phase of processing. The parameter list and record processing sequence for this exit is identical to that of Exit #1.

Each accounting record and all pertinent billing parameters are made available through the parameter list. You can modify information in the accounting record or any field in the working storage area made available through the parameter list. Upon entry to the user exit routine, the time and charge fields in working storage contain the results of the standard accounting algorithm calculations based on the appropriate RATE, TSORATE, FORMRATE, RJERATE, and PRIORITY statements.

The one-byte EBCDIC disposition indicator, as referenced through the parameter list, is blank upon entry to the user exit routine. A hex 'FF' (high values) upon entry indicates that an end-of-file condition has occurred and no further record processing is to be performed. You should take this opportunity to prepare totals, generate user-formatted reports, close any files you have opened, etc.

You can optionally set the one-byte disposition indicator to specify the necessary action to be taken upon return to the Report Writer. If you have set the disposition indicator to any nonblank character, then the record is automatically rejected from further processing.