For input -
//INPUT DD DSN=dataset-name,UNIT=(tape,2),
// VOL=SER=(vol1,vol2),DISP=OLD
If the dataset is cataloged, you can omit the VOLUME parameter, and code UNIT=(,2).
For output -
//OUTPUT DD DSN=dataset-name,UNIT=(tape,2),DISP=(NEW,...)
None of this is very desirable any more since most shops use virtual tape of some sort, tape library systems, or tape drive attachments to auto load tape volumes.