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
 

 

Filter based on date in MMDDYYYY format

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DFSORT/ICETOOL
View previous topic :: :: View next topic  
Author Message
Prakash nadesan

New User


Joined: 05 Mar 2009
Posts: 3
Location: Bangalore

PostPosted: Wed Apr 21, 2010 12:06 pm    Post subject: Filter based on date in MMDDYYYY format
Reply with quote

Hi, I have a requirement where my input file has date in MMDDYYYY format and i have to sort and include only the records which has date < currentdate - 28 days in the output file.
Back to top
View user's profile Send private message

Anuj Dhawan

Senior Member


Joined: 22 Apr 2006
Posts: 6258
Location: Mumbai, India

PostPosted: Wed Apr 21, 2010 3:15 pm    Post subject:
Reply with quote

Include records using relative dates at Smart DFSORT Tricks.
Back to top
View user's profile Send private message
enrico-sorichetti

Global Moderator


Joined: 14 Mar 2007
Posts: 10256
Location: italy

PostPosted: Wed Apr 21, 2010 3:59 pm    Post subject: Reply to: Filter based on date in MMDDYYYY format
Reply with quote

do not double post
people answering are the same in both forums!
Back to top
View user's profile Send private message
Prakash nadesan

New User


Joined: 05 Mar 2009
Posts: 3
Location: Bangalore

PostPosted: Wed Apr 21, 2010 5:14 pm    Post subject:
Reply with quote

I have refered the material already, but this doesnt have any solution for dates in MMDDYYYY format
Back to top
View user's profile Send private message
CICS Guy

Senior Member


Joined: 18 Jul 2007
Posts: 2150
Location: At my coffee table

PostPosted: Wed Apr 21, 2010 5:24 pm    Post subject:
Reply with quote

Date calculation - is it possible?
Date calculation with DFSORT
Back to top
View user's profile Send private message
Prakash nadesan

New User


Joined: 05 Mar 2009
Posts: 3
Location: Bangalore

PostPosted: Wed Apr 21, 2010 7:11 pm    Post subject:
Reply with quote

Hi,

This sort worked.

Code:

//SYSIN    DD *                                     
  SORT FIELDS=COPY                                 
  INREC OVERLAY=(52:5,4,1,2,3,2)                   
  OUTFIL INCLUDE=(52,8,CH,LE,DATE1-28),BUILD=(1,51)
/*                                                 


Thanks All.
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 Validate date and numeric fields and ... Rick Silvers DFSORT/ICETOOL 6 Thu May 11, 2017 6:51 pm
No new posts Group Data based on a key Arun Raj DFSORT/ICETOOL 7 Thu Apr 27, 2017 11:29 pm
No new posts LISTIDR compiled date/time jerryte IBM Tools 3 Thu Apr 20, 2017 7:37 pm
No new posts SUBSTR for Date functions Shaheen Shaik DB2 4 Thu Apr 06, 2017 2:14 pm
No new posts Format record to remove Leading zeroes Learncoholic DFSORT/ICETOOL 14 Wed Apr 05, 2017 2:43 pm


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