Mainframe: How to Read Tape File

This post tells JCL you need to read or browse tape files in mainframe.

You cannot browse tape files directly. So first you need to copy tape file to sequential file using IEBGENER utility. Then you can read or browse the file.

//STEP01   EXEC PGM=IEBGENER
//SYSPRINT DD SYSOUT=A
//SYSUT1   DD DSN=J.TAPE.UST.A,
//            DISP=SHR
//SYSUT2   DD DSN=PQHL.DASD.UST.A,
//            DISP=(NEW,CATLG,DELETE),
//            UNIT=TEST80,SPACE=(CYL,(1000,1000),RLSE),DCB=*.SYSUT1
//SYSIN    DD DUMMY
//*

Related Posts

Author: Srini

Experienced software developer. Skills in Development, Coding, Testing and Debugging. Good Data analytic skills (Data Warehousing and BI). Also skills in Mainframe.