As our use of ReportCaster grows, I can see myself being asked what schedules ran yesterday, what reports were sent out, and who were the lucky recipients.
Schedules run 10/29/2019 Schedule Report Recipient ======== ====== ============== HR.sch HR Report email@example.com firstname.lastname@example.org Inv.sch Inventory Report email@example.com firstname.lastname@example.org
I know I can review the log files, to see this information, and I am looking at something more 'presentation quality'.
If there is a canned WebFOCUS report that would be great.
If I had to create a report, I wouldn't mind, I just don't know if/where ReportCaster schedule EXecution data might be stored.This message has been edited. Last edited by: FP Mod Chuck,
From your RC repository it's the BOTLOG table that contain the execution date/time
But good luck using this table and perform that joins between all other table to get the information the way you want
Extracting the schedule name and recipients it's one thing, but joined to the execution log (BOTLOG)...
Hoping that something else can be used or someone else have another option...
WF versions : Prod 188.8.131.52M gen 240, Dev 8.2.04 gen 48, OS : Windows, DB : MSSQL, Outputs : HTML, Excel, PDF
In Focus since 2007
In The tools section there is a Report caster explorer that shows the info you need, except the reportname, but creating meaningfull schedulenames resolves that.
Test: WF 8.2
Prod: WF 8.2
DB: Progress, REST, IBM UniVerse/UniData, SQLServer, MySQL, PostgreSQL, Oracle, Greenplum, Athena.
Thanks for your comments Martin and Frans.
ReportCaster Explorer is one of my favs for determining status of last run of a schedule.
In my mind though I am seeing someone ask me for information for a previous period, and who the recipients were for each of those runs.
Assuming that you have access to your repository, this SQL might get you what you need
SELECT DISTINCT schd.JOBDESC 'rc_job' , schd.CASTER_USER 'schd_userId' , DATEADD(s, (CAST([START_STAMP] AS BIGINT) / 1000) - (DATEDIFF(SECOND, GETDATE(), GETUTCDATE())), '1970-01-01') 'start_stamp' , DATEADD(s, (CAST([END_STAMP] AS BIGINT) / 1000) - (DATEDIFF(SECOND, GETDATE(), GETUTCDATE())), '1970-01-01') 'end_stamp' , log2.RC_MESSAGE 'distribution' FROM dbo.BOTSCHED AS schd WITH (READUNCOMMITTED) LEFT JOIN dbo.BOTLOG AS log1 WITH (READUNCOMMITTED) ON log1.SCHED_ID = schd.SCHEDULEID LEFT JOIN dbo.BOTLOG2 AS log2 WITH (READUNCOMMITTED) ON log1.STAT_BT_NAME = log2.STAT_BT_NAME AND (log2.RC_MESSAGE LIKE '%distributed to%' OR log2.RC_MESSAGE LIKE '%No report to distribute%') ORDER BY start_stamp DESC
Thank you Hallway!
I can see that the SELECT clause is pulling the type of information I am seeking. (I thought this information might have been stored off by IB somewhere. :-))
At this point, our site doesn't yet read internal/repository IB tables with our own SQL, and this might be something we'll consider.
|Powered by Social Strata|