Posts related to JCL

Batch Job to delete all members of a Partitioned dataset
Here’s a simple way of deleting all members of a partitioned dataset via a batch job: //DELETE EXEC PGM=IDCAMS //SYSPRINT DD SYSOUT=* //SYSIN DD * DELETE USER1.PDS.EXAMPLE(*) In the above example all the members (represented by the *) of the dataset USER1.PDS.EXAMPLE will be deleted.