xcall MIAMEX, MX_ZAPQUEUE, jobno
MX_ZAPQUEUE removes the jobtbl record and any associated queue blocks for the specified job number. Needless to say, this will not be appreciated if the user is actively running, and should only be used in extreme circumstances or when you are sure the user is no longer active. jobno is the job number of the user to zap.
MX_ZAPQUEUE is used by KILL, QUTL and SYSTAT/K/Z commands. The last of these, SYSTAT/K/Z, is the preferred and best way to remove resources left over from a job that has aborted without cleaning itself up.