An exit program is a program to which control is passed from a calling program.
When you specify an exit program, the servers pass the following two parameters to the exit program before running your request:
These two parameters allow the exit program to determine whether your request is allowed. If the exit program sets the return code to X'F0', the server rejects the request. If the return code is set to anything else, the server allows the request.
The same program can be used for multiple exit points. The program can determine what function is being called by looking at the data in the second parameter structure.
Use the Work with Registration Information (WRKREGINF) command to add your exit programs to the database exit points.
The database server has five different exit points defined: