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
 

 

Using SYNCSORT to remove duplicates ?

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
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    Post subject: Using SYNCSORT to remove duplicates ?
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

Senior Member


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

PostPosted: Mon Aug 09, 2010 7:09 pm    Post subject:
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    Post subject:
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

Site Director


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

PostPosted: Wed Aug 11, 2010 2:37 am    Post subject:
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    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 SEQNUM and FI fields. nartcr SYNCSORT 5 Sat Jan 21, 2017 4:02 am
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


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