COGNOiSe.com - The IBM Cognos Community

IBM Cognos 10 Platform => Cognos 10 BI => Report Studio => Topic started by: katdbc on 01 Oct 2014 07:17:37 PM

Title: How to schedule a report by passing current_date to the prompt in the report
Post by: katdbc on 01 Oct 2014 07:17:37 PM
Can any anybody help me on "How to schedule a report by passing current_date to the prompt in the report" .Im using cognos 10.1

I tried to do this by using a if  statement in the report to selectively filter from a static choice passed during run time from the scheduler.

I haven't used macros before. Can anybody help me with a macro solution. Im sure this is a repetitive question but for some reason I couldnt find the proper link. If anybody can point me in a right direction. I would be very thank ful.
Title: Re: How to schedule a report by passing current_date to the prompt in the report
Post by: BigChris on 02 Oct 2014 01:51:02 AM
I wrote a blog post on this sort of thing...mostly so that I've an aide memoire on how to do it. See if this helps you at all:

http://cognostips.weebly.com/blog/date-prompts

C
Title: Re: How to schedule a report by passing current_date to the prompt in the report
Post by: katdbc on 02 Oct 2014 04:14:43 AM
Thanks chris .

But it doesnt say anything about the scheduling part, how do I send current_date to a report with a date prompt ?
Title: Re: How to schedule a report by passing current_date to the prompt in the report
Post by: BigChris on 02 Oct 2014 04:55:57 AM
When you schedule the report you can just click on the prompts and select the option you want the schedule to run for. I haven't put current date or yesterday in the list, but you should be able to extend the logic to cover what you need.