Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist 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 ISSUE IN copying Sequential file reco... thesumitk JCL & VSAM 2 Wed Dec 13, 2017 3:07 pm
No new posts Merging 2 records at multiple rows wi... Bijesh DFSORT/ICETOOL 2 Wed Dec 06, 2017 1:50 am
No new posts Compare and COPY using DFSORT pshongal DFSORT/ICETOOL 3 Fri Nov 17, 2017 9:49 am
No new posts Increment number for every group of r... srajendran2 DFSORT/ICETOOL 7 Thu Nov 09, 2017 10:31 pm
No new posts Matching and unmatched records!! Vignesh Sid SYNCSORT 3 Thu Nov 09, 2017 11:22 am

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us