Using the EXIT statement

Use the EXIT statement type to specify statements that:
  • Add exit routines to an exit.
  • Replace exit routines for an exit.
  • Modify exit routines for an exit.
  • Delete exit routines from an exit.
  • Undefine implicitly defined exits.
  • Change the attributes of an exit.

You can use the PROGxx EXIT statement to define exits to the dynamic exits facility at IPL. You can use multiple ADD statements to add more than one exit routine to a particular exit.

Previously defined exit definitions can be modified with the PROGxx EXIT statement, the SET PROG=xx operator command, or the SETPROG EXIT operator command through the following methods:
  • The EXIT statement of the PROGxx parmlib member. The PROGxx EXIT statement interacts with the PROG=xx parameter of IEASYSxx and the SET PROG=xx command. At IPL, operators can use PROG=xx to specify the particular PROGxx parmlib member the system is to use. During normal processing, operators can use the SET PROG=xx command to set a current PROGxx parmlib member.
  • The SETPROG EXIT operator command. This command performs the same functions as the EXIT statement of the PROGxx parmlib member. See z/OS MVS System Commands for information about the SETPROG EXIT command.
  • The CSVDYNEX macro. The CSVDYNEX macro can be used to define exits to the dynamic exits facility, control their use within a program, and associate one or more exit routines with those exits. It can also be used to associate exit routines with the existing SMF and allocation exits, which have been defined to the dynamic exits facility.
An installation can use any of these methods to control dynamic exits. For example, an exit routine can be associated with an exit using the CSVDYNEX ADD request, the SETPROG EXIT,ADD operator command, or the EXIT statement of PROGxx.
Notes:
  1. If you currently specify exits in the EXITxx parmlib member, IBM® suggests that you convert the format of EXITxx to PROGxx using the IEFEXPR REXX exec provided by IBM.
  2. Exits that are currently specified in the SMFPRMxx parmlib member can also be specified in the PROGxx parmlib member. See Specifying SMF exits to the dynamic exits facility for an example of how to use the EXIT ADD statement to specify SMF exits in PROGxx parmlib members.
  3. Exit definitions are not replaced by the SET PROG=xx or SETPROG EXIT commands. They are modified as specified in the command.
  4. The SET PROG=xx command may need authorization to define a dynamic exit via the REQUEST=DEFINE option of the CSVDYNEX macro. See z/OS MVS Planning: Operations for instructions.