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
 

 

copy duplicate records and non duplicate records

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DFSORT/ICETOOL
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    Post subject: copy duplicate records and non duplicate records
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: 1703
Location: Australia

PostPosted: Mon Sep 01, 2008 11:18 am    Post subject:
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    Post subject:
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    IBMMAINFRAMES.com Support Forums -> DFSORT/ICETOOL All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Using ICETOOL, how we can seperate th... bshkris SYNCSORT 5 Tue May 09, 2017 8:33 pm
No new posts Check if any Detail records and extra... V S Amarendra Reddy SYNCSORT 19 Mon May 08, 2017 8:54 pm
No new posts copy SEQ to PDS and create stats steve-myers JCL & VSAM 7 Thu Apr 27, 2017 1:15 am
No new posts Copy load modules and alias vasanthz IBM Tools 5 Thu Apr 20, 2017 6:31 am
No new posts Join giving more records than expected Danielle.Filteau SYNCSORT 2 Thu Mar 09, 2017 3:28 am


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