Using the DELETE command in EXEC PGM=IKJEFT01 apparently only deletes a Partitioned DataSets (PDS) main member and leaves the ALIAS name still intact and present. How do I delete the ALIAS?.

Document ID : KB000013726
Last Modified Date : 14/02/2018
Show Technical Document Details
Question:

Using the DELETE command in EXEC PGM=IKJEFT01 apparently only deletes a Partitioned Data Sets (PDS) main member and leaves the ALIAS name still intact and present. 

  1. Is there another command parameter for DELETE which will include the ALIAS members for deletion? 
  2. Or do I have to code also a separate DELETE command for the ALIAS member name? 
Answer:

The PDSM32 Utility has a DELETE command and optional ALIAS parameter. 

Delete a Member and its Aliases, 
In the following example, the member MYTEST and its aliases will be deleted, from the TEST.LOAD library. 

//S1 EXEC PGM=PDSM32 
//PDSMPDS DD DSN=TEST.LOAD,DISP=SHR 
//PDSMRPT DD SYSOUT=A 
//SYSIN DD * 
DELETE MYTEST ALIAS 
//