Page 2 of 2

Re: How to Split the record in two part and remove the dupli

PostPosted: Mon Sep 17, 2012 4:11 pm
by BillyBoyo
Just had a thought. In their second post, Puneet (finally) explained that the data can be in any order, so obviously does need the SORT anyway.

The interesting thing is then, how to get the MINimum beginning range if it is not on the first record? Does it work coding the MIN for 6,10?

I assume you are defaulting to OPTION EQUALS at your site for it to work in your test with the data from Puneet's first?

Re: How to Split the record in two part and remove the dupli

PostPosted: Tue Sep 18, 2012 9:49 am
by bodatrinadh
Hi Billy, Sorry for the delay...

Even in SYNCSORT, it is mandatory to use SORTIN01 for Merge..
Here is with MIN option..

//SYSPRINT DD SYSOUT=*       
//SORTIN01 DD *             
0001952000000000100000008   
0001952000000001000000020   
0001952000000003000000040   
0012121000000011100000121   
0012121000000015100000191   
//SORTOUT DD SYSOUT=*       
//SYSIN    DD *             
  OPTION EQUALS             
  MERGE FIELDS=(1,5,CH,A)   
  DUPKEYS MIN=(6,10,ZD)     


Output :-

0001952000000000100000008
0012121000000011100000121

Re: How to Split the record in two part and remove the dupli

PostPosted: Tue Sep 18, 2012 12:31 pm
by NicC
This is a duplicate of a post on anothter forum. I cannot do anything over there but I can stop this one.

Re: How to Split the record in two part and remove the dupli

PostPosted: Tue Sep 18, 2012 1:45 pm
by BillyBoyo
To be fair Nic, the other one was from several days before this. It has also appeared in a couple (at least) of LinkedIn groups.

It is only finally here that we got the full story about the data (can be in any order) and anyone looking at it who actually has SyncSort (bodatrinadh). Whether we ever hear from Puneet again, I don't know :-)