$DSCALL OPT=CLOSE

Closes an open data set.

&CONTROL SHRVARS=($DS)
EXEC $DSCALL    OPT=CLOSE 
                { DD=DD_name | ID=path_name }

Use this function to close an open data set.

Operands:

Return Codes:

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

Example: OPT=CLOSE

EXEC $DSCALL OPT=CLOSE DD=SYSDD

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


Copyright © 2009 CA. All rights reserved.