I want to know if it is possible to use Sort Cards to get data based on date range.
I have a file which is having date as one of the fields, based on that i have to filter records occuring in the last three months, six months and last one year.
i got one sort from this forum ,&DATE1(-)), ,&DATE1(-)-61 but it does not take into account 30 and 31 days for different months
1. What is the LRECL and RECFM of the input and output files?
2. What is the position and format of the date field you trying to validate?
3. When you say 3 months and 6 months , can you just account the month portion? like current month is july , last 3 months would start from apr and 6 months would start from feb. Do you need to go to specific date ?
Last but not least, run the following job and show me the entire sysout which helps us determine the level of DFSORT your shop has
1.) I have an 80 bytes FB file.
2.) The format of date field is tweakable. As of now it is ccyy/mm/dd. the sort will run on 1 st of every month so is is to be from 1st day of every month to last day of the previous month.