Finds the number of free tracks on a volume (disk pack).
&CONTROL SHRVARS=($DS)
EXEC $DSCALL OPT=VOLSPACE
VOL=volume_name
Use this function to find how much space is available on a volume.
Operands:
Specifies that free space on a volume be found.
The name of the volume on which free space is to be found.
Return Codes:
Note: For more information about &SYSMSG, &$DSRC, and &$DSFDBK, see Return Codes and Feedback Codes.
Return Variables:
The number of free tracks on the volume
Unit of volume disk pack
Example: OPT=VOLSPACE
EXEC $DSCALL OPT=VOLSPACE VOL=MOS001