IEBGENER Copy file from Disk to Tape
Copying files from disk to tape is a common operation in IBM mainframe environments, often used for archiving or backup purposes. Tape storage is typically used for long-term retention or for datasets that are not frequently accessed but need to be stored efficiently. IEBGENER can enable this transfer by selecting the disk dataset as the input (SYSUT1) and the tape dataset as the output (SYSUT2).
Practical Example -
Scenario - Copy a dataset from disk to tape.
Input PS File on disk - MATEPK.IEBGENER.INPUTPS
JCL -
----+----1----+----2----+----3----+----4----+----5----+
...
//STEP10 EXEC PGM=IEBGENER
//SYSPRINT DD SYSOUT=*
//SYSUT1 DD DSN=MATEPK.IEBGENER.INPUTPS,DISP=SHR
//SYSUT2 DD DSN=MATEPK.IEBGENER.OUTTAPE,
// DISP=(,KEEP),VOL=SER=012376,
// UNIT=TAPE,LABEL=(,SL),
// DCB=(RECFM=FB,LRECL=80,BLKSIZE=800)
//SYSIN DD DUMMY
...
Output - MATEPK.IEBGENER.OUTTAPE
Note! We can't able to process the file which is stored on TAPE.