IEBGENER Copy Unix file to PS file
IEBGENER is used to copy z/OS unix file to PS file by coding the appropriate file paths and dataset names in the JCL. UNIX System Services (USS) provides a POSIX-compliant environment where UNIX files are stored in a hierarchical file system (HFS) or z/OS File System (zFS).
Practical Example -
Scenario - Edit and Copy a Sequential z/OS UNIX file to a PS file.
JCL -
----+----1----+----2----+----3----+----4----+----5----+----6
...
//STEP10 EXEC PGM=IEBGENER
//SYSPRINT DD SYSOUT=*
//SYSUT1 DD PATH='/mth9/input1/trans.mon',
// FILEDATA=TEXT,PATHOPTS=ORDONLY,
// DCB=(LRECL=90,BLKSIZE=900,RECFM=FB)
//SYSUT2 DD DSN=MATEPK.IEBGENER.OUTPUTPS,
// DISP=(NEW,CATLG,DELETE),
// SPACE=(TRK,(10,10),RLSE),
// UNIT=3390,VOL=SER=DEVHD4,
// DCB=(DSORG=PS,RECFM=FB,LRECL=90,BLKSIZE=900)
//SYSIN DD DUMMY
...