Previous Topic: $DSCALL OPT=DSNLIST

Next Topic: $DSCALL OPT=EDIT


$DSCALL OPT=DSNSPACE

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:

OPT=DSNSPACE

Indicates that the number of allocated tracks on the specified data set are to be found.

DSN=dataset_name

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:

&$DSDYNEC

DYNALLOC error code.

&$DSALCTRKS

The number of allocated tracks.

&$DSUNIT

Unit of the volume.

&$DSORG

The organization of the data set.

Example: OPT=DSNSPACE

EXEC $DSCALL OPT=DSNSPACE DSN=SYS1.DEV.SAMPLE