Sample User Exit

The sample user exit adds records before or after the one passed to it. It also modifies records. During ICRE file creation, the user exit inserts sample records after the string header record, modifies the detailed records and removes batch statistics records.

The Java™ source for the sample ICRE user exit is install_directory\check\v303\ITS\samples\userexit\SampleIcreUserExit.java.

The sample user exit extends the UserControICRERecord class. The user exit overrides the methods shown in Table 1.
Table 1. Sample User Exit Methods
Method Description
void getUserControlRecord(com.ibm.paydir.izg.icre.writers.ICRERecord record) Returns the current user control record without modification.
public ICRERecordInterface[] processICREBatchStatsRecord(ICREBatchStatsRecord icrebatchstatsrecord,ICRERecordParams icreRecordParams) throws ICREException Removes the ICRE batch statistics record.
public ICRERecordInterface[] processICREDetailRecord(ICREDetailRecord icredetail,ICRERecordParams icreRecordParams) throws ICREException Modifies some of the properties of the ICRE item detail record. Control doc and record type are examples of the properties modified.
public ICRERecordInterface[] processICREHeaderRecord(ICREHeaderRecord icreheaderrecord,ICRERecordParams icreRecordParams) throws ICREException Adds the sample record after the string header record.