My scenario is that, my dataset consists of other dataset names as inputs. I just want to read this input dataset and combine all this datasets into a single dataset. Is it possible using DFSORT?
Ex:- My dataset name, XXX00D.PB.ASHOK.FILE - This dataset consists of
input as, XXX00D.PB.ASHOK.INPUT1
XXX00D.PB.ASHOK.INPUT2
XXX00D.PB.ASHOK.INPUT3 and so on. I can't read these inputs directly. I can source only this XXX00D.PB.ASHOK.FILE dataset from which i need to combine all the records from these three inputs,
XXX00D.PB.ASHOK.INPUT1
XXX00D.PB.ASHOK.INPUT2
XXX00D.PB.ASHOK.INPUT3 as single input.
Joined: 17 Aug 2007 Posts: 562 Location: Iowa, USA
Someone who is a wizard with SORT can figure out a way to insert these names into a set of JCL records giving an IEBGENER copy job for the INTRDR. Please wait for assistance.
If there is a solution using DFSORT, my furthur task will be easier.
Or else, no probs if there is any alternative solution for the same Using JCL + SAS or JCL+COBOL Code. Hence, Could you please share COBOL or SAS program to resolve the same. I will keep this in my hand as an alternative solution.
Take a look at the sortout from step0200, once you verify that it generated the correct jcl , change the sortout statement in step0200 to the following