MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Eliminating non-duplicate records

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Utilities
View previous topic :: View next topic  
Author Message
abhikush
Beginner


Joined: 26 Dec 2002
Posts: 12
Topics: 3

PostPosted: Fri Apr 16, 2004 2:41 pm    Post subject: Eliminating non-duplicate records Reply with quote

Is there a way by which we can eliminate non-duplicate records using SORT.

Let's say I have records:
1
1
1
2
3
4
4
4
4

The output file should look like:
1
1
1
4
4
4
4
Back to top
View user's profile Send private message
Frank Yaeger
Sort Forum Moderator
Sort Forum Moderator


Joined: 02 Dec 2002
Posts: 1618
Topics: 31
Location: San Jose

PostPosted: Fri Apr 16, 2004 3:01 pm    Post subject: Reply with quote

You can use the SELECT operator of DFSORT's ICETOOL with ALLDUPS to do that. Here's the DFSORT/ICETOOL job:

Code:

//S1    EXEC  PGM=ICETOOL
//TOOLMSG   DD  SYSOUT=*
//DFSMSG    DD  SYSOUT=*
//IN DD *
1
1
1
2
3
4
4
4
4
/*
//OUT DD SYSOUT=*
//TOOLIN DD *
  SELECT FROM(IN) TO(OUT) ON(1,1,CH) ALLDUPS
/*


For complete information on DFSORT's ICETOOL, see:

http://publibz.boulder.ibm.com/cgi-bin/bookmgr_OS390/BOOKS/ICE1CA00/6.0?DT=20031124143823
_________________
Frank Yaeger - DFSORT Development Team (IBM)
Specialties: JOINKEYS, FINDREP, WHEN=GROUP, ICETOOL, Symbols, Migration
DFSORT is on the Web at:
www.ibm.com/storage/dfsort
Back to top
View user's profile Send private message Send e-mail Visit poster's website
abhikush
Beginner


Joined: 26 Dec 2002
Posts: 12
Topics: 3

PostPosted: Fri Apr 16, 2004 3:06 pm    Post subject: Reply with quote

Thanks Frank. I will try it out.
Back to top
View user's profile Send private message
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12375
Topics: 75
Location: San Jose

PostPosted: Fri Apr 16, 2004 3:15 pm    Post subject: Reply with quote

Abhikush,

Please search before posting. This topic has been discussed. check this link for getting all dups in a file

http://www.mvsforums.com/helpboards/viewtopic.php?t=9&highlight=alldups

Kolusu
_________________
Kolusu
www.linkedin.com/in/kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Utilities All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group