Use JobDelete to delete a JES job, a JES data set group, or a POWER job.
JobDelete may also be entered as JobDel[ete], JobPur[ge], DeleteJ[ob], DelJ[ob], PurgeJ[ob], PurJ[ob], PurgeP, PurP, or PP.
Optional Operands
JOB is the JES job or POWER job to delete or the JES job containing the JES data set group to delete.
GROUP [JES jobs only]. is the JES data set group to delete. To delete a JES job (as opposed to JES data set group), do not specify GROUP.
JobDelete can also be invoked by entering the ContextDelete command while a JobLibrary session is current. The SessionDiscard command can be used to end a JobList session and delete the job or job data sets associated with it.
JES Notes
If neither JOB nor GROUP is specified, the last referenced job (and data sets) are deleted. (If last referenced job (and data sets) was specified with a DSET operand, JobDelete will be rejected because JES provides no facility to delete by data sets.)
To delete an entire JES job, specify the JOB operand but do not specify the GROUP operand. If the JES job has not completed processing, it will be canceled before all data sets are deleted. JobDelete operates on all data sets within the JES data set group.
JobDelete sets last referenced job (and data sets). This is typically not useful because no further processing can be done to the JES job or JES data set group deleted.
POWER Notes
If JOB is not specified, the last referenced job is deleted.
JobDelete sets last referenced job. This is typically not useful because no further processing can be done to the POWER job deleted.
When Valid
Check with your System Administrator to determine the restrictions on access to JES job and data sets and POWER jobs at your site. The exit routine distributed with host BIM-EDIT provides several restriction schemes your System Administrator can select from.
Return Codes
OK Successful.
NF Job or job data sets not found.
-- Codes as defined by the BIXPWQA exit routine.
JES Examples
Delete all data sets for JES job ASM500:
=> pp asm500
Delete class G hold queue data sets for JES job 3526:
=> pp 3526,g
Delete out group 3.1 output queue data sets for the last referenced job:
=> pp group=3.1
POWER Examples
Delete a POWER job in the reader queue of name ASM500, job number 3245:
=> pp rdr.asm500.3245
Delete a POWER job in the list queue of name AX3526:
=> pp ax3526
Delete a POWER job in the list queue with job number 2164:
=> pp lst.2164