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

retaining only duplicates in outputfile


IBM Mainframe Forums -> DFSORT/ICETOOL
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
satish1978

New User


Joined: 22 Jun 2006
Posts: 13
Location: mumbai

PostPosted: Thu Jul 26, 2007 6:06 pm
Reply with quote

hi
i have a input file contains 1000 record and near about 30 colums are in the file, i want to print only duplicates records in my JCL.
is it any way we can specified in sort field
we know for removing duplicates
we put sumfield= none
for reatining duplicates what we can do
Back to top
View user's profile Send private message
William Thompson

Global Moderator


Joined: 18 Nov 2006
Posts: 3156
Location: Tucson AZ

PostPosted: Thu Jul 26, 2007 6:22 pm
Reply with quote

If you have a new question, start a new thread in the correct forum.....
Back to top
View user's profile Send private message
krisprems

Active Member


Joined: 27 Nov 2006
Posts: 649
Location: India

PostPosted: Thu Jul 26, 2007 7:13 pm
Reply with quote

satish1978

check the Keep dropped duplicate records (XSUM) Smart DFSORT Trick at

www.ibm.com/servers/storage/support/software/sort/mvs/tricks/
Back to top
View user's profile Send private message
Frank Yaeger

DFSORT Developer


Joined: 15 Feb 2005
Posts: 7129
Location: San Jose, CA

PostPosted: Thu Jul 26, 2007 9:02 pm
Reply with quote

Quote:
i want to print only duplicates records in my JCL


How you would do this depends on what exactly you mean by "print only duplicate records".

If you want to keep the second and subsequent record with each duplicate value, you can use DFSORT/ICETOOL's SELECT with FIRST and DISCARD.

If you want to keep all records with duplicate values (no unique records), you can use DFSORT/ICETOOL's SELECT with ALLDUPS.

If you want to keep the first record of those with duplicate values, you can use DFSORT/ICETOOL's SELECT with FIRSTDUP.

If you're not familiar with DFSORT and DFSORT's ICETOOL, I'd suggest reading through "z/OS DFSORT: Getting Started". It's an excellent tutorial, with lots of examples, that will show you how to use DFSORT, DFSORT's ICETOOL and DFSORT Symbols. You can access it online, along with all of the other DFSORT books, from:

Use [URL] BBCode for External Links
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 -> DFSORT/ICETOOL

 


Similar Topics
Topic Forum Replies
No new posts FTP VB File from Mainframe retaining ... JCL & VSAM 8
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
No new posts Merging 2 files but ignore duplicate... DFSORT/ICETOOL 1
No new posts COUNT the number of duplicates DFSORT/ICETOOL 3
Search our Forums:

Back to Top