$DSCALL OPT=DELMEM

Deletes a member of a PDS.

&CONTROL SHRVARS=($DS)
EXEC $DSCALL OPT=DELMEM 
             DSN=dataset_name 
             MEMBER=member_name 
             CONFIRM={ YES | NO }

This call is used to delete a member of a PDS. This call fails if the specified member is in use by another user.

Operands:

OPT=DELMEM

Specifies that a member be deleted.

DSN=dataset_name

Specifies the name of the data set containing the member. No member name is specified.

MEMBER=member_name

Specifies the member to be deleted. A member name must be specified.

CONFIRM={ YES | NO }

Specifies whether to display a confirmation query before deleting the member. If CONFIRM=YES is specified (or left to default) a full-screen panel is displayed to request confirmation of the DELMEM action. The DELMEM action is confirmed or canceled.

Return Codes:

Note: For more information about &SYSMSG, &$DSRC, and &$DSFDBK, see Return Codes and Feedback Codes.

Example: OPT=DELMEM

EXEC $DSCALL OPT=DELMEM DSN=CUSTOMER.DATA MEMBER=TEST01