Stopping a Class of Transaction Programs with the SET Command

A way to stop a class of transaction programs is to issue a SET command specifying an ASCHPMxx parmlib member that deletes the class definition.

When you delete a class, APPC/MVS:
  • Rejects new inbound and outbound Allocate requests for TPs in the class
  • Either quiesces or immediately stops existing work:
    • When the CLASSDEL statement does not contain the WORKQ keyword, or contains WORKQ=DRAIN, the work is quiesced. That is, the TP currently running and all TPs on the work queue for the class are allowed to complete their processing before APPC/MVS deletes the class.
    • When CLASSDEL contains WORKQ=PURGE, all TPs on the work queue are rejected; only the currently running TP is allowed to complete its processing.

For example, to delete a class named TEST and drain its work queue, create a parmlib member ASCHPM4D with the following information:

Figure 1. ASCHPM4D
   CLASSDEL
     CLASSNAME(TEST)
To activate the parmlib member and delete the class, issue the following SET command:
   SET ASCH=4D