Joined: 27 Aug 2007 Posts: 102 Topics: 42 Location: Chennai
Posted: Wed Sep 10, 2008 7:55 am Post subject: From syncsort to dfsort
I moved over from a group where we were using SYNCSORT and now in this new group we are using DFSORT. I wanted to use JOINKEYS utility of syncsort. I found from the forum that its equivalent in DFSORT is SPLICE. But I'm confused.
Joined: 26 Nov 2002 Posts: 12380 Topics: 75 Location: San Jose
Posted: Wed Sep 10, 2008 10:56 am Post subject:
edkir98,
I appreciate you putting an effort to search before posting. However you have chose a post which is 4 years old and a lot more feature have been added to DFSORT.
Quote:
Can someone help? Also can you please explain the control card? It was a bit straightforward in SYNCSORT...
Frank has put a lot of effort in documentation and making it very easy to understand. Full documentation on ICETOOL is included in the DFSORT publications. For example, the "DFSORT Application Programming Guide" has Chapter 6, "Using ICETOOL".
He has several examples on splice explaining in detail. The DFSORT website has a ton of information on DFSORT and ICETOOL. "DFSORT: Getting Started" is the best way to learn about DFSORT and ICETOOL - you can find it online at:
Now coming to the reason for your error. You are using an instream data of 80 bytes and the control cards are trying to reformat the postions at pos 159 which is beyond the max lrecl of 80.
Here is a updated DFSORT/ICETOOL job which will give you the desired results.
You have 2 files. File1 is a unique key file and File 2 is a duplicate key file.
The first copy operator takes the unique file and pads the data to be populated at the end of every record and also adds an indicator '11'
This is how the data looks like after the first copy
The second copy operator takes the dups file and pads with 5 spaces to accomadate the data from file at the end of every record and also adds an indicator '22'
This is how the data looks like after the second copy
Now we use splice to copy over the contents from the unique file on to the duplicate file. After the completion of the splice the records looks like this
Now all the records that have a match are tagged with '12' and all the records which do not have a match with unique file are tagged with '22' Using an Include cond we only pick these records and we also move the data to be populated using a build card and there by creating the desired output
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