Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

SYNCSORT - Remove Duplicates & Write them on to another

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
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    Post subject: SYNCSORT - Remove Duplicates & Write them on to another
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

Moderator Team Head


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

PostPosted: Wed Jul 18, 2007 7:22 pm    Post subject: Re: SYNCSORT - Remove Duplicates & Write them on to anot
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    Post subject: Syntax
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: 1703
Location: Australia

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

Hi,
SORTXSUM is the DDNAME for duplicates.



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

Senior Member


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

PostPosted: Thu Mar 06, 2008 4:17 am    Post subject:
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    IBMMAINFRAMES.com Support Forums -> JCL & VSAM All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Syncsort Help to group fields sudhakarraju SYNCSORT 6 Thu Dec 29, 2016 1:38 am
No new posts Removing Duplicates based on certain ... chandracdac DFSORT/ICETOOL 8 Fri Dec 09, 2016 4:40 am
No new posts syncsort: copy lines after the keyword shreya19 SYNCSORT 7 Fri Dec 02, 2016 9:47 am
No new posts Updating the counters after eliminati... PANDU1 DFSORT/ICETOOL 12 Mon Nov 21, 2016 9:47 am
No new posts Syncsort - Hard coded Value in output PORYES SYNCSORT 1 Thu Nov 03, 2016 9:23 am


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us