ICRE User Exit

The ICRE task calls a user exit when the user exit name is provided in its configuration parameters. The ICRE user exit inserts, modifies, or deletes records either before or after the record passed to it.

When starting the ICRE task, the user exit is initialized. The user exit initialization includes a database connection, access to the task configuration, and details of the unit of work start parameters.

The ICRE task builds the file headers and string headers. This information is passed to the user exit before writing records to the ICRE file. After records are passed, the user exit performs the following:
  • Modifies records before writing to the ICRE file
  • Flags records as deleted
  • Inserts new records before or after these records
  • Deletes the current record while processing
The ICRE task builds item records. These records are passed to the user exit before writing the ICRE file. The user exit has access to the transaction ID and item version number used to create the record. After the records are passed, the user exit performs the following:
  • Modifies records before writing to the ICRE file
  • Removes records that are to be deleted
  • Inserts new records before or after these records

When the ICRE task finishes creating the file, the user exit also finishes its processing.