I had a talk with my analyst.
I do not have to select the record as a three month prior date. It is now as i originally stated on a Quarterly basis.
That is the Job will be run on the first Business day of the month. i have fetch the records wherein the date corresponds to that particular Quarter.
Example:
The first Business day in the month of July is : 1st July 2014
Then i have to fetch the records for the quarter 1st April 2014 - 30th June 2014
I mean to say even if the first business day of the month falls on say the 5th of a particular month, i need to fetch the records only for the previous quarter starting from the 1st to the last day of the month for that quarter end.
Example 5th April 2014 is the run-date and also the first business day of the month(assuming)
Records that Qualify
1st-Jan-2014 - 31st Mar-2014
The calendar days basically correspond to the days that are falling in that particular quarter and for which there are records present on file.
The use of Run-date depends on the format we use it in our sort card. I mean to say if we use functions like DATE1 to fetch the current date then the format in which it returns is what we will have to work with. The run-date will basically correspond to the current date that the job will run on.
Healy