System: Exit Program

IBM® Navigator for i now contains management of exit programs. An exit program is a program to which control is passed from a calling application program or system program. Exit programs can be used to customize functions to your needs.

Exit programs are usually user-written programs; however, a few are system-supplied (such as a few of the Operational Assistant exit programs). To transfer control to an exit program, you do an external call as you would to any other program.

There are no general requirements for using exit programs. For any specific requirements, see the documentation for the specific exit program.

An exit point signifies the point in a system function or program where control is turned over to one or more exit programs to perform a function.

An exit program entry is added for a specific exit point. Each exit point can have a single entry or multiple entries. The exit program number indicates the sequence in which the exit programs are run.

IBM Navigator for i supports the following exit program functions:

  • Work with a list of exit programs
  • Add an exit program (similar to ADDEXITPGM command)
  • Remove an exit program (similar to RMVEXITPGM command)

How to Access Exit Programs in IBM Navigator for i

Exit Programs are accessed on the System navigation menu. See Figure 1

Figure 1. Selecting Exit Programs from the System menu
Selecting Exit Programs from the System menu

This is the exit programs list in IBM Navigator for i. See Figure 2

Figure 2. The Exit Programs list
The Exit Programs list

Exit Program actions are available from the context menu for the selected exit point. See Figure 3

Figure 3. Actions available for exit programs
Actions available for exit programs

This is the Add Exit Program panel. See Figure 4

Figure 4. The Add Exit Program panel.
This is the Add Exit Program panel.