Computes the number of allocated tracks in a data set.
&CONTROL SHRVARS=($DS)
EXEC $DSCALL OPT=DSNSPACE
DSN=dataset_name
Used to find how much space is allocated to a data set.
Operands:
Indicates that the number of allocated tracks on the specified data set are to be found.
The name of the data set for which the number of allocated tracks will be found.
Return Codes:
Note: For more information about &SYSMSG, &$DSRC, and &$DSFDBK, see Return Codes and Feedback Codes.
Return Variables:
DYNALLOC error code.
The number of allocated tracks.
Unit of the volume.
The organization of the data set.
Example: OPT=DSNSPACE
EXEC $DSCALL OPT=DSNSPACE DSN=SYS1.DEV.SAMPLE