I need to generate a report on 28th of every month . So for that I need to run an autosys job. In that I have a query with the condition validation_date >= (number of days since last run) Could you please help me on this .How can I achieve this condition in DB2 ? This is a monthly job.So I don't want to hard code my previous run date in the query .At the same time I need to get a condition which satisfies for all the months .
Note : If the query is running on feb 28th ,then feb 28th is not included. I need to get data from january 28th(included) till feb 27th(included) similarly for march 28th run ,I need to get data from feb 28th(included) till march 27th(included)...Thanks in advance.Please help