Delete fixed-length RRDS Example


Scenario - Delete RRDS using the IDCAMS utility.

JCL -

----+----1----+----2----+----3----+----4----+----5----+
//MATEGJD JOB (123),'MTH',CLASS=A,MSGCLASS=A,
//             MSGLEVEL=(1,1),NOTIFY=&SYSUID
//********************************************
//* DELETING RRDS
//********************************************
//STEP01   EXEC PGM=IDCAMS
//SYSPRINT DD   SYSOUT=* 
//SYSIN    DD   *
      DELETE 'MATEGJ.TEST.RRDS'
/*

In the above JCL, MATEGJ.TEST.RRDS is the RRDS name that is planned to delete.

Output -

Once the above JCL is submitted, check the MAXCC of the job for any errors. If the MAXCC is 00 or 04, RRDS successfully got deleted.

DELETE RRDS Output

Verify the RRDS in 3.4 (Dataset List utility) or any File management tools if required to double-check.

DELETE RRDS Output

Explaining Example -

In the above example, the MATEGJ.TEST.RRDS (RRDS file) successfully deleted and uncatalogued(space released).