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

Using SYNCSORT to remove duplicates ?


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

New User


Joined: 12 Apr 2010
Posts: 5
Location: India

PostPosted: Mon Aug 09, 2010 6:11 pm
Reply with quote

Hello,
I am trying SORT to remove duplicates in a file of comparing 3 different columns.
as a example:
Code:
                    22       30                            48               -  column number
         1         2         3         4         5         6
....5....0....5....0....5....0....5....0....5....0....5....0  -  -  a ruler
LPGS0BAU     CIF     COBBCH  TESTA   E1CBLEB   
LPGS0BAU     CIF     COBBCH  TESTA   E1CBLEBD 
LPGS0BAU     CIF     COBBCH  TESTA   E1CBLEBS 
LPGS0BAU     CIF     COBBCH  TESTA   E1CBLEB23X
LPGS0BAU     CIF     COBBCH  TESTA   E1SHARE   
LPGS0BAU     CIF     COBONL  TESTA   E1CBLEO23
LPGS0BAU     CIF     COBONL  TESTA   E1CBLEO23D
LPGS0BAU     CIF     COBONL  TESTA   E1CBLEO23S
LPGS0BAU     CIF     COBONL  TESTA   E1SHARE


I am using
SORT FIELDS=(22,8,CH,A,30,8,CH,A,48,8,CH,A)
SUM FIELDS=NONE,XSUM

It's removing some duplicates but still few exist.

Can any one help me on this.

Thanks & Regards,
Srini
Back to top
View user's profile Send private message
Anuj Dhawan

Superior Member


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

PostPosted: Mon Aug 09, 2010 7:09 pm
Reply with quote

I'm somewhat lost with your example and not sure what do you mean by this
Quote:
It's removing some duplicates but still few exist.
? Can you please post the expected output from the input?
Back to top
View user's profile Send private message
Bill Dennis

Active Member


Joined: 17 Aug 2007
Posts: 562
Location: Iowa, USA

PostPosted: Wed Aug 11, 2010 1:11 am
Reply with quote

Your third field start location of 48 looks wrong based on your example. And the length appears greater than 8.
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Wed Aug 11, 2010 2:37 am
Reply with quote

Hello,

A "ruler" has been added to the data for readability.

It looks like the 48 should be 38 and as Bill mentions, the length appears to be more than 8 - depending on the end of the field.

You didn't bother to post the unwanted output, so we can only guess. . .
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 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
No new posts How to remove block of duplicates DFSORT/ICETOOL 8
This topic is locked: you cannot edit posts or make replies. Compare files with duplicates in one ... DFSORT/ICETOOL 11
Search our Forums:

Back to Top