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: 4649
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 Write out NODUPS but just from one file Jay Villaverde DFSORT/ICETOOL 8 Fri Jul 14, 2017 12:44 am
No new posts How to write Specific Fields from Mul... Padhu SYNCSORT 6 Thu Jul 06, 2017 10:26 am
No new posts Need to write record of PS File in ex... Chandan1993 JCL & VSAM 1 Wed Jun 07, 2017 1:35 am
No new posts Format record to remove Leading zeroes Learncoholic DFSORT/ICETOOL 14 Wed Apr 05, 2017 2:43 pm
No new posts Write R1 and R2 to OP1 and R1 to OP2 bhaskar_kanteti DFSORT/ICETOOL 10 Fri Mar 03, 2017 11:18 am


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