I am trying to create a JCL for merging flat files using IEBGENER. The number of input files is not constant. Can we do it using IEBGENER?
Can you override IEBGENER SYSUT1 DD
when invoking the PROC
? Something like:
//EXEC procedure
//procstep.SYSUT1 DD DSN=first.copy.file,DISP=SHR,
// DSN=second.copy.file,DISP=SHR,
// DSN=thrid.copy.file,DISP=SHR
etcetera...
Where procedure
is the catalogued procedure and procstep
is the IEBGENER step.
When multiple datasets are
given for a single DD statement they are concatenated together. As far
as IEBGENER
is concerned they should look like a single input dataset.