Use the EMPTY statement to delete all members of a partitioned data set or to erase all data of a physical sequential data set.


Read syntax diagramSkip visual syntax diagramlabelEMPTYOUTDD= DDnameOUTDSN=DSname( DSname,SHROLD)


All keyword parameters have the same syntax as for the DELETE statement.

Usage notes

  • Either OUTDD or OUTDSN keywords must be specified, but together they are mutually exclusive.
  • An EMPTY operation of a PDS data set also automatically triggers a COMPRESS operation after removing all members of the data set.