Focal Point
[CLOSED] List RC Schedules Run, What Report EXecuted, Who Were the Recipients?

This topic can be found at:
https://forums.informationbuilders.com/eve/forums/a/tpc/f/7971057331/m/9727009196

October 30, 2019, 10:01 AM
David Briars
[CLOSED] List RC Schedules Run, What Report EXecuted, Who Were the Recipients?
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.

Something like...
Schedules run 10/29/2019
Schedule   Report              Recipient
========   ======              ==============
HR.sch     HR Report           smikita@bh.org
                               bhull@bh.org
Inv.sch    Inventory Report    fthomas@ws.org
                               tanderson@ws.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,




Pilot: WebFOCUS 8.2.06 Test: WebFOCUS 8.1.05M Prod: WebFOCUS 8.1.05M Server: Windows Server 2016/Tomcat Standalone Workstation: Windows 10/IE11+Edge Database: Oracle 12c, Netezza, & MS SQL Server 2019 Output: AHTML/XLSX/HTML/PDF/JSCHART Tools: WFDS, Repository Content, BI Portal Designer & ReportCaster
October 30, 2019, 10:50 AM
MartinY
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 8.2.04M gen 33, Dev 8.2.04M gen 33, OS : Windows, DB : MSSQL, Outputs : HTML, Excel, PDF
In Focus since 2007
October 30, 2019, 10:52 AM
Frans
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.
October 30, 2019, 03:24 PM
David Briars
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.
October 30, 2019, 09:02 PM
Hallway
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
 



Hallway

 
Prod: 8202M1
Test: 8202M4
Repository:
 
OS:
 
Outputs:
 
 
 
 
October 31, 2019, 12:21 PM
David Briars
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.

Thanks again.