Deletes a cataloged data set.
&CONTROL SHRVARS=($DS)
EXEC $DSCALL OPT=DELETE
DSN=dataset_name
CONFIRM = { YES | NO }
This call is used to delete a cataloged data set. The data set is allocated to your product region, then deleted and uncataloged. This call cannot be used to delete a PDS member. To delete a specific member, use the $DSCALL OPT=DELMEM call.
Operands:
Specifies that the data set be deleted.
Specifies the name of the data set to be deleted. No member name is specified.
Specifies whether to display a confirmation query before deleting the data set. If CONFIRM=YES is specified (or left to default) a full-screen panel is displayed to request confirmation of the DELETE action. The DELETE action is confirmed or canceled.
Return Codes:
Note: For more information about &SYSMSG, &$DSRC, and &$DSFDBK, see Return Codes and Feedback Codes.
Example: OPT=DELETE
EXEC $DSCALL OPT=DELETE DSN=SYS.WORK.DEV01 CONFIRM=NO