Specify value for #ds_name
//STEP1 EXEC PGM=IDCAMS
//SYSPRINT DD SYSOUT=*
//SYSOUT DD SYSOUT=*
//SYSIN DD *
DELETE #ds_name PURGE
/*
Specify values for #input_pds
and #member
//STEP1 EXEC PGM=IDCAMS
//SYSPRINT DD SYSOUT=*
//SYSOUT DD SYSOUT=*
//DD1 DD DSN=#input_pds ,DISP=SHR
//SYSIN DD *
DELETE #input_pds(#member) FILE(DD1)
/*
Specify value for #ds_name
//STEP1 EXEC PGM=IDCAMS
//SYSPRINT DD SYSOUT=*
//SYSOUT DD SYSOUT=*
//SYSIN DD *
DELETE #vsam_ds_name
SET MAXCC=0
/*
or delete a VSAM using mask: DEL MY.VSAM.** MASK
Specify value for #ds_with_mask
//STEP1 EXEC PGM=IDCAMS
//SYSPRINT DD SYSOUT=*
//SYSIN DD *
DELETE #ds_with_mask MASK NONVSAM
SET MAXCC = 0
/*