Joined: 02 Dec 2002 Posts: 1618 Topics: 31 Location: San Jose
Posted: Thu Mar 17, 2005 10:32 am Post subject:
Please explain in more detail, with more examples, what you're trying to do. It appears from your one example that you're pairing up the first XXX with the first YYY and the second XXX with the rest of the YYY's. That's not much to go on and certainly not much help understanding what you want when "number of records in each group may vary". What do you want if there are three XXX's? Four XXX's? Five YYY's? Two YYY's? _________________ Frank Yaeger - DFSORT Development Team (IBM)
Specialties: JOINKEYS, FINDREP, WHEN=GROUP, ICETOOL, Symbols, Migration
DFSORT is on the Web at:
www.ibm.com/storage/dfsort
There will always be 2 groups. One under 'XXX" and other under 'YYY'. I am pasting 3 sample inputs and respective desired outputs. Hope this will clarify my requirement:
The following JCL will give you the desired results. INFILE is the i/p file with data vertically grouped and OUTFILE is the o/p file with data horizontally grouped. I have assumed that there will be a max of 999999 records for each of the groups.
Joined: 02 Dec 2002 Posts: 1618 Topics: 31 Location: San Jose
Posted: Fri Mar 18, 2005 11:16 am Post subject:
Here's a DFSORT/ICETOOL job that will give you what you want. It uses the new IFTHEN parameter available with z/OS DFSORT V1R5 PTF UQ95214 or DFSORT R14 PTF UQ95213 (Dec, 2004) so you'll need that PTF. If you have DFSORT, but you don't have that PTF, ask your System Programmer to install it (it's free).
_________________ Frank Yaeger - DFSORT Development Team (IBM)
Specialties: JOINKEYS, FINDREP, WHEN=GROUP, ICETOOL, Symbols, Migration
DFSORT is on the Web at:
www.ibm.com/storage/dfsort
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum