
So the job creates the file, writes data out to it, then deletes it! I once spend several hours in the middle of the night trying to work out why a job was not creating a file, when the problem was simply that I'd forgotten to add a DISP statement. The first parameter will default to NEW, but the second one defaults to DELETE! If you don't specify a disposition at all, the default is DISP=(NEW,DELETE,DELETE). Incidentally, if you are creating a new dataset, you must specify DISP=(,CATALOG) at the very least. SYSUT2 DD DISP=(,CATLG,DELETE),DSN=output dataset, It is using a dataclass to get the attributes for the output file. The example below shows IEBGENER at its simplest, to just copy a file. It can also be used to convert sequential files to partitioned and partitioned to sequential.

IEBGENER can only cope with record lengths up to 32760 bytes, longer records are truncated. IEBGENER is used for copying Physical Sequential files, and for copying members of Partitioned datasets or PDSEs. FDReport is a utility program that gets data from VTOCS and Catalogs.
