Using Registration Facility APIs and Registration Facility Preprocessing Exit Programs

The registration facility is a service that provides storage and retrieval operations for i5/OS(TM) and non-i5/OS exit points and exit programs. An exit point is a specific point in a system function or program where control may be passed to one or more specified exit programs. An exit program is a program to which control is passed from an exit point. This exit program can then supplement standard system functions in areas such as additional authorization checks, data transformations, auditing, and so on. Examples of exit programs often can be found with the exit point documentation. This registration facility repository allows multiple programs to associate with a given system function or application function.

An exit point can call one program, a fixed number of programs, or all programs associated with an exit point. The exit program number associated with each exit program should be used to determine the sequence in which the exit programs are run.

An exit point can be registered multiple times with the same exit point name; however, the combination of the exit point name and the exit point format name must be unique. Each exit program will be associated with a specific exit point and exit point format. The exit point format name can be used to indicate that a change occurred to the interface of the exit point. For example, this unique name (exit point and format) could be the result of a parameter change, version change, exit program data definition, and so forth. This unique name will facilitate having different exit programs run from different versions of a product for the same exit point name.

The exit point provider is responsible for the following:

If you intend to provide an exit point, you should become familiar with all the APIs and the preprocessing exit programs in the registration facility part before using them. The APIs and preprocessing exit programs are interdependent.

If you intend to provide an exit program, you should become familiar with the Add Exit Program (QUSADDEP, QusAddExitProgram) and Remove Exit Program (QUSRMVEP, QusRemoveExitProgram) APIs. When developing the exit program, the exit program provider is responsible for reclaiming all resources allocated by the exit program.

The registration facility gives the exit point provider the option to perform preprocessing when an operation is requested against an exit point. The exit point provider is responsible for providing the preprocessing exit program. The preprocessing exit program is called by the registration facility before the requested function is performed on the exit point. (The requested function might be an add, remove, or retrieve operation.) The preprocessing exit program notifies the registration facility if the requested function should be completed. The following restrictions apply:


Top | Registration Facility APIs | APIs by category