Statement DO STKRULE indicates limitations regarding the tapes on that the current data set can be stacked.
If a value is specified for only subparameter JOB, the data set cannot be stacked on a volume that already contains data sets that were created by the specified job name.
If a value is specified for only subparameter DSN, the data set cannot be stacked on a volume that already contains data sets with the specified data set name.
If values are specified for both subparameter JOB and subparameter DSN, the data set cannot be stacked on a volume that contains a data set with the specified name that was created by the specified job name.
DO STKRULE statements are applied within the group assigned to the specified data set. For more information about stacking groups, see DO STKGROUP in this chapter.