Focal Point Banner
Community Center Education Summit Technical Support User Groups
Let's Get Social!

Facebook Twitter LinkedIn YouTube
Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     [CLOSED] List RC Schedules Run, What Report EXecuted, Who Were the Recipients?
Go
New
Search
Notify
Tools
Reply
  
[CLOSED] List RC Schedules Run, What Report EXecuted, Who Were the Recipients?
 Login/Join
 
Master
posted
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,




Test: WebFOCUS 8.1.05M Prod: WebFOCUS 8.1.05M Server: Windows Server 2012/Tomcat Standalone Workstation: Windows 7/IE 11 Database: Oracle 12c/Netezza Output: AHTML/XLSX/HTML/PDF/JSCHART Tools: WFDS, Repository Content, BI Portal Designer, & ReportCaster

 
Posts: 780 | Registered: April 23, 2003Reply With QuoteReport This Post
Virtuoso
posted Hide Post
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.0.1M gen 240, Dev 8.2.04 gen 48, OS : Windows, DB : MSSQL, Outputs : HTML, Excel, PDF
In Focus since 2007
 
Posts: 2223 | Location: Montreal Area, Qc, CA | Registered: September 25, 2013Reply With QuoteReport This Post
Guru
posted Hide Post
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.
 
Posts: 411 | Location: Europe | Registered: February 05, 2007Reply With QuoteReport This Post
Master
posted Hide Post
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.
 
Posts: 780 | Registered: April 23, 2003Reply With QuoteReport This Post
Master
posted Hide Post
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
WF(Prod):8202M
WF(Test):8202M
OS/Platform:Win 10
Outputs:All
 
Posts: 485 | Location: Salt Lake City, UT, USA | Registered: November 18, 2015Reply With QuoteReport This Post
Master
posted Hide Post
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.
 
Posts: 780 | Registered: April 23, 2003Reply With QuoteReport This Post
  Powered by Social Strata  
 

Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     [CLOSED] List RC Schedules Run, What Report EXecuted, Who Were the Recipients?

Copyright © 1996-2018 Information Builders, leaders in enterprise business intelligence.