IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

SYNCSORT - Remove Duplicates & Write them on to another


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
shanbalasay

New User


Joined: 22 May 2007
Posts: 19
Location: Belfast, UK

PostPosted: Wed Jul 18, 2007 5:01 pm
Reply with quote

Can anyone tell me how to do the below.

1. Remove the Duplicates using SYNCSORT Utility
2. Write the removed duplicates onto another file

I used the below to remove the duplicates
SORT FIELDS=(1,44,CH,A),DYNALLOC=SYSDA
SUM FIELDS=NONE

I've heard of XSUM option to write the duplicates to a file. But I'd be grateful if anyone can tell me how to use it or any other option using SORT.
Back to top
View user's profile Send private message
superk

Global Moderator


Joined: 26 Apr 2004
Posts: 4652
Location: Raleigh, NC, USA

PostPosted: Wed Jul 18, 2007 7:22 pm
Reply with quote

This is the method I've seen employed for SYNCSORT:

Code:

  SORT FIELDS=(1,44,CH,A),DYNALLOC=SYSDA
  SUM FIELDS=NONE,XSUM
Back to top
View user's profile Send private message
kirankumarj

New User


Joined: 18 Dec 2007
Posts: 51
Location: delaware

PostPosted: Thu Mar 06, 2008 3:10 am
Reply with quote

Where do we specify the output dataset to which the duplicates should be written to?
Back to top
View user's profile Send private message
gcicchet

Senior Member


Joined: 28 Jul 2006
Posts: 1702
Location: Australia

PostPosted: Thu Mar 06, 2008 3:24 am
Reply with quote

Hi,
SORTXSUM is the DDNAME for duplicates.



Gerry
Back to top
View user's profile Send private message
Anuj Dhawan

Superior Member


Joined: 22 Apr 2006
Posts: 6250
Location: Mumbai, India

PostPosted: Thu Mar 06, 2008 4:17 am
Reply with quote

Hi,

Does Your site has both (DFSORT & Syncsot) products, same question is in this thread..

As said before SORTXSUM is the name, so JCL would have a structure like

Code:
//STEP1    EXEC PGM=SYNCSORT                         
//SYSOUT   DD SYSOUT=*                               
//SYSPRINT DD SYSOUT=*                               
//*                                                 
//SORTIN   DD DSN=INPUT                             
//*                                                 
//SORTOUT DD DSN=OUTPUT.WITHOUT.DUP                 
//*                                                 
//SORTXSUM DD DSN=OUTPUT.WITH.DUP                   
//*                                                 
//SORTWK03 DD UNIT=SYSDA,SPACE=(4096,(11664),,,ROUND)
//*                                                 
//SYSIN DD *                                         
 SORT FIELDS=(1,LENGTH,CH,A)                         
 SUM FIELDS=NONE,XSUM                               
//*                                                 
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts Compare 2 files(F1 & F2) and writ... JCL & VSAM 8
No new posts Write line by line from two files DFSORT/ICETOOL 7
No new posts Sortjoin and Search for a String and ... DFSORT/ICETOOL 1
No new posts Compare only first records of the fil... SYNCSORT 7
No new posts Remove leading zeroes SYNCSORT 4
Search our Forums:

Back to Top