Previous Topic: $DSCALL OPT=DEQ

Next Topic: $DSCALL OPT=DSNSPACE


$DSCALL OPT=DSNLIST

Provides in variables the number and name of data sets concatenated to a ddname.

&CONTROL SHRVARS=($DS)
EXEC $DSCALL OPT=DSNLIST 
             DD=dd_name

Used to provide a list of all the data sets concatenated to a ddname.

Operands:

OPT=DSNLIST

Indicates that a list of data sets concatenated to a ddname is requested.

DD=DD_name

Specifies the ddname under which the data sets are allocated to your product region.

Return Codes:

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

Return Variables:

&$DSCONCAT#

Number of data sets returned

&$DSDSN1-n

Name of the data set found in the concatenation

Example: OPT=DSNLIST

EXEC $DSCALL OPT=DSNLIST DD=COMMANDS