Write exit programs

This topic identifies considerations when specifying an exit 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 possible. If the exit program sets the return code to X'F1', the server allows the request. If the return code is set to X'F0' the server rejects the request. If values other than X'F1' or X'F0' are set, the results will vary depending upon which server is being accessed.

For multiple servers and exit points, the same program is usable. The program can determine which server is being called and which function is being used by looking at the data in the second parameter structure.

Exit program parameters documents the structures of the second parameter that is sent to the exit programs. You can use this information to write your own exit programs.

Related concepts
Exit program parameters