$DSCALL OPT=DELETE

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:

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


Copyright © 2009 CA. All rights reserved.