Joined: 23 Nov 2006 Posts: 19270 Location: Inside the Matrix
Even though your lrecl may vary between files, if the input and output from each copy will have the same lrecl yo can simply use IEBGENER.
If you specify SYSUT2 without dcb parameters the dcb info from the input will be used when creating the output. When you specify SYSUT1, all you need is the dsn and disp, the dcb info will be handled automatically.
So, you can copy any PS file without knowing the dcb info at all
Please refer the SYSOUT display below. (Though it is of my job's SYSOUT; My job is having different SYSIN). It (Dark red colored and bold lettered) is saying that my output file is having different LRECL than INPUT but the job runs successfully. And FYIP - this is not an error message; it is an information. Have you checked your output file?
It should come fine.