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

Need to Sort out the repeated values


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

New User


Joined: 09 Apr 2008
Posts: 41
Location: USA

PostPosted: Mon May 12, 2008 5:02 pm
Reply with quote

hi,

i need to sort out the repeated values

ex:

i/p

456 200
567 100
456 200
567 200
789 300

o/p

456 200
456 200
Back to top
View user's profile Send private message
V S Amarendra Reddy

Active User


Joined: 13 Sep 2006
Posts: 216
Location: USA

PostPosted: Mon May 12, 2008 5:34 pm
Reply with quote

Hi,

This DFSORT/ICETOOL job will give you the desired result.

Code:

//SORT     EXEC PGM=ICETOOL                   
//TOOLMSG  DD  SYSOUT=*                                       
//DFSMSG   DD  SYSOUT=*                                       
//IN   DD  *                                             
456 200                                                       
567 100                                                       
456 200                                                       
567 200                                                       
789 300                                                       
/*                                                           
//OUT  DD  SYSOUT=*                                       
//TOOLIN   DD  *                                             
SELECT FROM(IN) TO(OUT) ON(1,3,CH) ON(5,3,CH) ALLDUPS
/*


Here I assumed the the two fields are different so we have two on fields.

Regards
Amar
Back to top
View user's profile Send private message
balukanna

New User


Joined: 09 Apr 2008
Posts: 41
Location: USA

PostPosted: Wed May 21, 2008 10:41 am
Reply with quote

hi Amar,

sorry for the delay...

thanks a lot...
its working fine...
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 Need to set RC4 through JCL SORT DFSORT/ICETOOL 5
No new posts How to split large record length file... DFSORT/ICETOOL 10
No new posts INCLUDE OMIT COND for Multiple values... DFSORT/ICETOOL 5
No new posts Replace Multiple Field values to Othe... DFSORT/ICETOOL 12
No new posts JCL sort card - get first day and las... JCL & VSAM 9
Search our Forums:

Back to Top