View previous topic :: View next topic
|
Author |
Message |
Aneesh
New User
Joined: 30 Sep 2006 Posts: 60
|
|
|
|
Hi,
I have a FB file of length 80 that has a date field in positions 10-15 - the date is in the format mmddyy.
I need to extract all records with the date greater than current date - 7 days (all records in the past week).
Is there a direct date check available for this?
Thanks in advance,
Aneesh. |
|
Back to top |
|
|
Terry Heinze
JCL Moderator
Joined: 14 Jul 2008 Posts: 1249 Location: Richfield, MN, USA
|
|
|
|
No "one-step" solution that I know of. I think you'll have to use a COBOL intrinsic function to convert current date - 7 days to a date in yymmdd format, then read your input file also converting the dates there to yymmdd and do your compare. |
|
Back to top |
|
|
Aneesh
New User
Joined: 30 Sep 2006 Posts: 60
|
|
|
|
Thank you. |
|
Back to top |
|
|
|