COGNOiSe.com - The IBM Cognos Community

IBM Cognos 8 Platform => COGNOS 8 => Topic started by: Maple on 30 May 2007 09:19:28 AM

Title: Event Studio: how to stop the report schedule if the database load fails...
Post by: Maple on 30 May 2007 09:19:28 AM
is there any way through which report schedule stops automatically if the database load do not finish successfully.
Title: Re: Event Studio: how to stop the report schedule if the database load fails...
Post by: goose on 30 May 2007 09:26:53 AM
Can you elaborate a bit...?
Title: Re: Event Studio: how to stop the report schedule if the database load fails...
Post by: Maple on 30 May 2007 09:47:29 AM
We have scheduled some reports to send via e-mail.  Our database load ran daily in the morning ...some time the database load failed but the schedule ran in the morning and sent our reports with no data ...in this situation we have to send our report twice...i was thinking that is there any other way through which our report schedule stops automatically if the database load did not finish successfully...
Title: Re: Event Studio: how to stop the report schedule if the database load fails...
Post by: goose on 30 May 2007 11:18:58 AM
You can create a table in your db, populate a column with a value for the day from the script that loads the data. In event studio you can check for the existance of the record for the day and then only run the reports if the data was loaded successfully.
Title: Re: Event Studio: how to stop the report schedule if the database load fails...
Post by: Maple on 30 May 2007 11:38:24 AM
perfect...sounds good...I'll try and let you know

Thanks
Title: Re: Event Studio: how to stop the report schedule if the database load fails...
Post by: newmans_99 on 30 May 2007 02:28:50 PM
Another (non-EventStudio) option would be to schedule the object (report, query, etc...) based on a trigger rather than a calendar. Then have your Database Update process (ETL tool, etc...) call the trigger to let Cognos know to execute any objects that are associated with that trigger. In the Cognos samples is some sample code on how to "trigger" a trigger from the command line.
Title: Re: Event Studio: how to stop the report schedule if the database load fails...
Post by: mycognos on 20 May 2009 07:56:06 AM
Hi,

Can anyone tell me how to create a trigger based on database refresh? My cognos server and database server are in linux platform. Any help would be appreciated..thanks in advance...