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.
only since z/os 1.12
Hello Rick,
Are you using any * on the pdsname? Can you please email me the JCL you are using?
Cheers!
I tried to do this on a z/OS 1.11 system and got
error message IDC3203I ITEM ‘pdsname(*)’ DOES NOT ADHERE TO RESTRICTIONS.