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 

Date Logic

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


Joined: 19 Jul 2006
Posts: 32
Topics: 15

PostPosted: Sat May 29, 2010 2:34 am    Post subject: Date Logic Reply with quote

Dear all,

I have an input file with the below format.
08110~001~04001~ ~010186

The last 6 bytes are date in MMDDYY format. I should write records to O/P file only if the date(MMDDYY) greater than current date. How should I achieve it using SORT or ICETOOL.

Your help in resolving this will be appreciated.

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


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

PostPosted: Sat May 29, 2010 8:41 am    Post subject: Reply with quote

spalanis,

Try this . I assumed your date mmddyy starts in pos 18.
Code:

//SYSIN    DD *                                                         
  OPTION COPY,Y2PAST=1980                                                           
  INCLUDE COND=(18,6,Y2W,GT,Y'DATE1')
//*

_________________
Kolusu
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