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

copy duplicate records and non duplicate records


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

New User


Joined: 07 May 2005
Posts: 22

PostPosted: Mon Sep 01, 2008 10:37 am
Reply with quote

Dear Friends,

i have a file contains an account numbers. i want to copy all the duplicate account numbers into one file and non duplicate account numbers into another file. how can i do with JCL utilities (DFSORT/ICETOOL/SYNCSORT)

regards
murali
Back to top
View user's profile Send private message
gcicchet

Senior Member


Joined: 28 Jul 2006
Posts: 1702
Location: Australia

PostPosted: Mon Sep 01, 2008 11:18 am
Reply with quote

Hi,

try this , you will need to adjust the account number field
Code:
//ALLDUPS  EXEC  PGM=ICETOOL                                           
//TOOLMSG  DD SYSOUT=*                                                 
//DFSMSG   DD SYSOUT=*                                                 
//IN       DD *                                                       
123                                                                   
124                                                                   
124                                                                   
125                                                                   
123                                                                   
123                                                                   
//ALLDUPS  DD SYSOUT=*                                                 
//NONDUP   DD SYSOUT=*                                                 
//TOOLIN DD *                                                         
SELECT FROM(IN) TO(ALLDUPS) ON(1,3,CH) ALLDUPS DISCARD(NONDUP)         


Gerry
Back to top
View user's profile Send private message
murali_andaluri
Currently Banned

New User


Joined: 07 May 2005
Posts: 22

PostPosted: Mon Sep 01, 2008 11:34 am
Reply with quote

Thank you very much friends
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 Duplicate transid's declared using CEDA CICS 3
No new posts Compare only first records of the fil... SYNCSORT 7
No new posts Pulling a fixed number of records fro... DB2 2
No new posts VB to VB copy - Full length reached SYNCSORT 8
No new posts Join multiple records using splice DFSORT/ICETOOL 5
Search our Forums:

Back to Top