$DSCALL OPT=FCLOSE

Combines the deallocating and closing data set functions into a single call.

&CONTROL SHRVARS=($DS)
EXEC $DSCALL    OPT=FCLOSE
                { DD=DD_name | ID=path_name } 
                DISP={ KEEP | DELETE }

This call is used as a more simple interface than the combination of OPT=CLOSE and OPT=UNALL. It allows a single call to close and 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=FCLOSE

EXEC $DSCALL OPT=FCLOSE DD=&Q$DD

Notes:

For an OUTPUT data set, the final block is written. This may cause an ABEND message if the data set exceeds its size limit.

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

If a concatenated data set is freed, the first data set in the concatenation is deallocated and the other ddnames in the concatenation become visible. The net effect is the same as a deconcatenation followed by a deallocation of the first ddname in the concatenation.


Copyright © 2009 CA. All rights reserved.