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: 10211
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 Removing Duplicates based on certain ... chandracdac DFSORT/ICETOOL 8 Fri Dec 09, 2016 4:40 am
No new posts TOT & DATE parameter in ICEMAN hemanthj642 DFSORT/ICETOOL 4 Mon Nov 14, 2016 5:19 am
No new posts Match or compare two files in VB Format anatol DFSORT/ICETOOL 14 Thu Nov 03, 2016 7:41 pm
This topic is locked: you cannot edit posts or make replies. How to pass the previous month date i... Suganya87 DFSORT/ICETOOL 5 Mon Oct 31, 2016 4:13 pm
No new posts Low values Results from VARCHAR FORMAT balaji81_k DB2 10 Thu Oct 20, 2016 1:18 am


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