[◀ JCL Batch Jobs]
- Creating a flat file with content
- Copying a flat file
- Merging multiple text files into one flat file
//*
//* +----1----+----2----+----3----+----4----+----5----+----6----+----7-
//*
//STEP1 EXEC PGM=IEBGENER
//SYSPRINT DD SYSOUT=A
//SYSIN DD DUMMY
//SYSUT1 DD *
SOME CONTENT
/*
//SYSUT2 DD DISP=(,CATLG,DELETE),DSNAME=dataset.name,
// DCB=(RECFM=FB,LRECL=80,BLKSIZE=0),
// UNIT=DN,SPACE=(TRK,(1))
//*
//* +----1----+----2----+----3----+----4----+----5----+----6----+----7-
//*
//STEP1 EXEC PGM=IEBGENER
//SYSPRINT DD SYSOUT=A
//SYSIN DD DUMMY
//SYSUT1 DD DISP=SHR,DSNAME=input.dataset.name
//SYSUT2 DD DISP=(,CATLG,DELETE),DSNAME=output.dataset.name,
// DCB=(RECFM=FB,LRECL=80,BLKSIZE=0),
// UNIT=DN,SPACE=(TRK,(1))
//*
//* +----1----+----2----+----3----+----4----+----5----+----6----+----7-
//*
//STEP1 EXEC PGM=IEBGENER
//SYSPRINT DD SYSOUT=A
//SYSIN DD DUMMY
//SYSUT1 DD DISP=SHR,DSNAME=input.dataset.name.no1
// DD DISP=SHR,DSNAME=input.dataset.name.no2
//SYSUT2 DD DISP=(,CATLG,DELETE),DSNAME=output.dataset.name,
// DCB=(RECFM=FB,LRECL=80,BLKSIZE=0),
// UNIT=DN,SPACE=(TRK,(1))