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

Removing duplicate as well as original rows


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

New User


Joined: 17 Mar 2009
Posts: 30
Location: Bangalore.India

PostPosted: Thu Feb 18, 2010 1:15 pm
Reply with quote

Hello
I am trying to remove the duplicate as well as original rows from input datastet to one output dataset and other output dataset should contain all remaining rows...It should work like this..
Code:

Input : ( Key position 1-3)
 
123 abc
123 ffff
345 xtz
456 mnp
345 ggg
 
Output1 : ( Duplicate and original rows)
123 abc
123 ffff
345 xtz
345 ggg
 
Output2 : (Remaing unique rows)
456 mnp

I could achieve output1 with SUM FIELD=NONE and match unitilty in two different steps..But again I need to delete these duplicates from input to create output2..This is going to be very tedious work for huge files..
Is it possible in one/tow SORT steps..
Please help me on this..
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Thu Feb 18, 2010 2:53 pm
Reply with quote

Here's what I use
Code:
//ICETOOL  EXEC PGM=ICETOOL
//TOOLMSG  DD SYSOUT=*
//DFSMSG   DD SYSOUT=*
//IN1      DD * 
123 ABC
123 FFFF           
345 XTZ               
456 MNP                     
345 GGG
/*                       
//PRT      DD SYSOUT=*               
//OUT      DD SYSOUT=*             
//TOOLIN   DD *           
  SELECT FROM(IN1) TO(PRT) ON(1,3,CH) NODUPS DISCARD(OUT)
Back to top
View user's profile Send private message
swapnilushinde

New User


Joined: 17 Mar 2009
Posts: 30
Location: Bangalore.India

PostPosted: Thu Feb 18, 2010 6:51 pm
Reply with quote

Hi Expat
Thanks a lot..it worked for me..One last thing..Could you please provide me manual of ICETOOL.. If yes then it will be great for me !!!
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Thu Feb 18, 2010 6:57 pm
Reply with quote

There is a sticky topic at the head of the form "DFSORT / ICETOOL Reference material" where Frank has set up links to the different documents.
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 Feb 18, 2010 10:45 pm
Reply with quote

All of the DFSORT books and papers are available online from:

www.ibm.com/support/docview.wss?rs=114&uid=isg3T7000080

"z/OS DFSORT Application Programming Guide" has complete doc for DFSORT's ICETOOL in Chapter 6.
Back to top
View user's profile Send private message
swapnilushinde

New User


Joined: 17 Mar 2009
Posts: 30
Location: Bangalore.India

PostPosted: Fri Feb 19, 2010 12:00 pm
Reply with quote

Hi Expat and Frank
Thanks for all your help !!!
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 To get the count of rows for every 1 ... DB2 3
No new posts Duplicate transid's declared using CEDA CICS 3
No new posts Exclude rows with > than x occurre... DFSORT/ICETOOL 6
No new posts Duplicate several members of/in one l... JCL & VSAM 7
No new posts Convert single row multi cols to sing... DFSORT/ICETOOL 6
Search our Forums:

Back to Top