CL Command Reference - ADDEXITPGM

CL Command List > ADDEXITPGM Reference

Description:

The Add Exit Program (ADDEXITPGM) command adds an exit program entry 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.



Examples:

ADDEXITPGM EXITPNT(USER_EXIT_ONE) FORMAT(EXIT1) PGMNBR(1)
PGM(LIB2/MYPGM) TEXT(*MSGID) MSGID(TXT2345)
MSGF(LIB1/MYMSGF)

This command adds exit program MYPGM in library LIB2 to exit point USER_EXIT_ONE. This is first exit program run for the exit point. The text description for the exit program is retrieved from message TXT2345 in message file MYMSGF in library LIB1. No program data is passed to the exit program.