Use the RESET statement to delete the contents of managed data sets. Provide the ddname of the file that is emptied on the OUTFILE parameter of the RESET statement This ddname must match the ddname on the ADDFILE command.
For example, to delete the contents of FILE1, specify a RESET statement as follows:
// EXEC PGM=LDMAMS //SSN$xxxx DD DUMMY //SYSPRINT DD SYSOUT=A //SYSIN DD * RESET OUTFILE(FILE1) //*
Note: A file can be reset only if it was defined with the REUSE option of the DEFINE CLUSTER control statement of the IDCAMS utility.
|
Copyright © 2014 CA Technologies.
All rights reserved.
|
|