Joined: 06 Jun 2008 Posts: 8696 Location: Dubuque, Iowa, USA
IEBCOPY handles PDS and PDSE files -- not sequential tapes.
IEBGENER may (or may not) be able to do the copy -- it depends on what created the original file. DF/DSS, for example, specifically says the COPYDUMP facility is the only approved way to copy a DF/DSS dump data set.
IDCAMS REPRO could be used instead of IEBGENER for most files (except DF/DSS dumps).
Joined: 17 Aug 2007 Posts: 562 Location: Iowa, USA
Standard copy utilities will not copy multiple files on the tape automatically. You'd need a copy step for each file, with VOL=REF=, LABEL=, and UNIT=AFF= on the output DD to stack on the same tape.
It copies tape file DD01 to DD01O and DD02 to DD02O . To make sure that all the output tape files are created on the same tape for DD01O give the required VOL=REF=, LABEL=, and UNIT=AFF=. For all subsequent output files like DD02O just mention UNIT=AFF=DD01O. This will ensure that DD02O is created on the same tape as DD01O.