On IBM i

Compiling API exits on IBM® i.

An exit is created as follows (for a C language example):
  1. Create a module using CRTCMOD. Compile it to use teraspace by including the parameter TERASPACE(*YES *TSIFC).
  2. Create a service program from the module using CRTSRVPGM. You must bind it to the service program QMQM/LIBMQMZF_R for multithreaded API exits.