Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist 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: 10327
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 sort records based on length exceeds ... maxsubrat DFSORT/ICETOOL 7 Wed Oct 04, 2017 4:48 pm
No new posts Execute JCL step based on the content... sprikitik JCL & VSAM 2 Tue Oct 03, 2017 10:03 am
No new posts How to insert a value on specific pos... Poha Eater DFSORT/ICETOOL 9 Sun Oct 01, 2017 3:04 am
No new posts Compare yesterday's date to the one o... migusd SYNCSORT 11 Fri Sep 22, 2017 11:35 pm
No new posts Fetch Previous month & year in MM... girishb2 DFSORT/ICETOOL 3 Thu Sep 21, 2017 9:54 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us