Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist 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: 4650
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 How to write Rexx program to size and... sreejeshcs CLIST & REXX 14 Thu Oct 12, 2017 7:26 am
No new posts Split 1 file into 10 output Files - S... Prasanth Kumar SYNCSORT 5 Sat Sep 16, 2017 12:02 am
No new posts Remove leading spaces from numeric field rexx77 SYNCSORT 6 Wed Sep 06, 2017 2:15 am
No new posts Join records from 2 files with No Dup... Poha Eater DFSORT/ICETOOL 22 Sun Aug 27, 2017 10:35 pm
No new posts Match two files using multiple keys a... santoshks1987 SYNCSORT 11 Fri Aug 18, 2017 10:50 am

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us