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:
Indicates that a list of data sets concatenated to a ddname is requested.
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:
Number of data sets returned
Name of the data set found in the concatenation
Example: OPT=DSNLIST
EXEC $DSCALL OPT=DSNLIST DD=COMMANDS