Where allowed to run: All environments (*ALL) Threadsafe: Yes |
Parameters Examples Error messages |
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.
Top |
Keyword | Description | Choices | Notes |
---|---|---|---|
EXITPNT | Exit point | Simple name | Required, Positional 1 |
FORMAT | Exit point format | Simple name | Required, Positional 2 |
PGMNBR | Program number | 1-2147483647, *LOW, *HIGH | Required, Positional 3 |
PGM | Program | Qualified object name | Required, Positional 4 |
Qualifier 1: Program | Name | ||
Qualifier 2: Library | Name, *CURLIB | ||
THDSAFE | Threadsafe | *UNKNOWN, *NO, *YES | Optional |
MLTTHDACN | Multithreaded job action | *SYSVAL, *RUN, *MSG, *NORUN | Optional |
TEXT | Text 'description' | Character value, *BLANK, *MSGID | Optional |
MSGID | Message identifier | Simple name | Optional |
MSGF | Message file | Qualified object name | Optional |
Qualifier 1: Message file | Name | ||
Qualifier 2: Library | Name, *LIBL | ||
REPLACE | Replace existing entry | *YES, *NO | Optional |
CRTEXITPNT | Create exit point | *YES, *NO | Optional |
PGMDTA | Exit program data | Single values: *NONE Other values: Element list |
Optional |
Element 1: Coded character set ID | Integer, *JOB | ||
Element 2: Length of data | 0-2048, *CALC | ||
Element 3: Program data | Character value, X'' |
Top |
Specifies the exit point name to which the exit program is added. If no exit point by this name exists, and CRTEXITPNT(*YES) is specified, an exit point is created.
Top |
Top |
Specifies the sequence in which the exit programs are run when multiple exit point programs for a specific exit point are defined.
The possible values are:
Top |
Specifies the name of exit program to be called. The program does not have to exist on the system when this command is run.
The name of the exit program can be qualified by one of the following library values:
The possible value is:
Top |
Specify the threadsafe attribute for the exit program entry. If you do not know the threadsafety status of the exit program entry, use the default value of *UNKNOWN.
The possible values are:
Top |
Specify the multithreaded job action for this exit program entry. If you do not know the action to take in a multithreaded job, use the default value of *SYSVAL.
The possible values are:
Top |
Specifies the text that briefly describes the exit program.
The possible values are:
Top |
Specifies the message identifier that contains the text that describes the exit program. The message is retrieved from the message file specified by the MSGF parameter. This parameter can only be specified if TEXT(*MSGID) is specified.
The possible values are:
Top |
Specifies the message file and library that contains the message specified by the MSGID parameter. This parameter can only be specified if TEXT(*MSGID) is specified. The name of the message file is qualified by one of the following library values:
The possible values are:
Top |
Specify whether the attributes and data for an exit program entry are replaced. New values for the program data and the text or message identifier can be specified. The program name and library cannot be changed.
The possible values are:
Top |
Specify whether the exit point is automatically created if it does not already exist.
The possible values are:
Top |
Specifies the data that is passed to the exit program. This data should correspond to the input data defined by the exit point provider.
The possible values are:
The possible CCSID for program data values are:
The possible Length of program data values are:
The possible Program data value is:
Top |
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.
Top |
Top |