MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Duplicate removal

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Utilities
View previous topic :: View next topic  
Author Message
INIYA
Beginner


Joined: 02 Mar 2007
Posts: 7
Topics: 4

PostPosted: Thu Mar 15, 2007 5:17 am    Post subject: Duplicate removal Reply with quote

Pls find the below file. I have a 2 same rows for each account.
but the timestamp is different. i want the single row which is in the maximum timestamp.
Code:

Account                                       Timestamp

accow1234                                  2007-03-14-03.37.02.947893
accow1234                                  2007-03-14-04.37.02.947893
wewde1234                                  2007-03-14-03.37.03.947893
wewde1234                                  2007-03-14-04.37.05.947893
ererer232                                  2007-03-14-05.37.05.947893

Pls Advise

Thanks
Iniya
Back to top
View user's profile Send private message
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12367
Topics: 75
Location: San Jose

PostPosted: Thu Mar 15, 2007 5:27 am    Post subject: Reply with quote

INIYA,


Try this untested job.

Code:

//STEP0100 EXEC PGM=ICETOOL                             
//TOOLMSG  DD SYSOUT=*                                 
//DFSMSG   DD SYSOUT=*                                 
//IN       DD *                                         
ACCOW1234 2007-03-14-03.37.02.947893                   
ACCOW1234 2007-03-14-04.37.02.947893                   
WEWDE1234 2007-03-14-03.37.03.947893                   
WEWDE1234 2007-03-14-04.37.05.947893                   
ERERER232 2007-03-14-05.37.05.947893                   
//OUT      DD SYSOUT=*                                 
//TOOLIN   DD *                                         
  SELECT FROM(IN) TO(OUT) ON(01,10,CH) FIRST USING(CTL1)
//CTL1CNTL DD *                                         
  SORT FIELDS=(01,10,CH,A,                             
               11,26,CH,D)                             
/*


Hope this helps...

Cheers

kolusu
_________________
Kolusu - DFSORT Development Team (IBM)
DFSORT is on the Web at:
www.ibm.com/storage/dfsort

www.linkedin.com/in/kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Utilities All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group