$DSCALL OPT=UNALL

Deallocates a data set from your product region.

&CONTROL SHRVARS=($DS)
EXEC $DSCALL 
OPT={ UNALL | FREE } 
DD=DD_name [ DISP={ KEEP | DELETE } ]

Use this option to deallocate a data set.

Operands:

Return Codes:

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

Return Variables:

Example: OPT=UNALL

EXEC $DSCALL OPT=UNALL DD=DD1

Notes:

If a concatenated data set is freed, the first data set in the concatenation is deallocated and the other ddnames in the concatenation return to their original allocation state. The net effect is the same as a deconcatenation followed by a deallocation of the first ddname in the concatenation.

A temporary data set whose name was generated at allocation is deleted when deallocated, regardless of the disposition value specified.


Copyright © 2009 CA. All rights reserved.