I have a Cognos report, which contains a prompt page with a Date Valid prompt. This is a value prompt, not a date prompt.
I need to schedule this report so when the schedule is suppose to run, the last day of the previous month from this prompt will be automatically selected.
Right know if I create a schedule and define my prompt values, I select the last day of the previous month. But then the scheduled report always runs with this date which has been set, even when i schedule it to run next month.
I would like the report to automatically selected the last day of the previous month from this value prompt when the report is scheduled (for example I schedule this report to run next month Monday in September and I need it to select 31st of August automatically).
The solution found online includes macro prompt, or creating two values/options for the date prompt - one for scheduling (which will automatically select last available date according to the schedule date) and one for ad-hoc report run (select your desired date from the prompt).
Any help how/where to use the macro prompt would be much apreciated.
Thank you