I tried by giving this new condition aftre INREC OVERLAY and removing my INREC keyword (as I think only one INREC can be given at a time ).it is not giving error but also not formatting the records as I want .
Do i need to use some keyword like HIT NEXT ? for continuation.
Is there any advantage in using the OMIT condition first than using that in OUTFIL ?
I suppose since the number of records that would be processed is reduced it might increase the performance.
Am I right?
Do you realize that you are creating an invalid date in pos 371 if the date happens to Feb 29th of a leap year when you just add 1 to the year portion without validating the month and date?
For example if you are running on 2013-FEB-28 and if your input has the following date
2012-02-29 now adding 1 to the year makes the date as 2013-02-29 and your omit condition would fail. I am showing the filtering and INREC manipulation as I am not really sure what the date check is. If you explain your date check condition, I will suggest an alternate solution. I think your date check is similar to another topic here where I provided a solution.