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] ReportCaster API using DSTRUNNOW
Go
New
Search
Notify
Tools
Reply
  
[CLOSED] ReportCaster API using DSTRUNNOW
 Login/Join
 
Platinum Member
posted
Hi,
We are using external ESP jobs to run ReportCaster schedules.Earlier we were using the RESTful API of ReportCaster (IBIRS_action = run) to execute the schedules.
Now we had a new requirement to pass parameter values to the ReportCaster schedules and execute it.So we are currently using DSTRUNNOW and it works successfully.
But when we used the IBIRS_action = run method it use to return jobID and we used that ID to find the status of the job (completed or ended up in an error).While using DSTRUNNOW method it just returns a text "ReportCaster Transaction successfully executed".This happens even if the procedure in the schedule ends up in error.
We tried to go use the timestamp columns from the BOTLOG2 tables to get the latest job ID and find its status.But the timestamp is "1534201398341".We couldn't find what format is this timestamp.Can someone explain me how this can be converted to a proper timestamp(MM/DD/YYYY) or explain the current format of the time stamp.
We are trying to pass parameters to the schedule and also find the status of that job,both using the external ESP job.If someone has any suggestions please share.

WF8105M
Windows 10

This message has been edited. Last edited by: FP Mod Chuck,
 
Posts: 113 | Registered: October 25, 2017Reply With QuoteReport This Post
Virtuoso
posted Hide Post
Are you doing all this in 8.105M? I think in 8.2xx the start and end timestamps are in miliseconds but saved in Alpha.

This message has been edited. Last edited by: BabakNYC,


WebFOCUS 8203, Unix, Windows
 
Posts: 1335 | Location: New York City | Registered: December 30, 2015Reply With QuoteReport This Post
Expert
posted Hide Post
As per Babak, the timestamps are stored as milliseconds since a base timestamp.

If you have your repository in MS SQL and are using views, then you could use the following to return datetime -
dateadd(hour, datepart(hour, sysdatetimeoffset()) - datepart(hour, sysutcdatetime()), dateadd(millisecond, convert(bigint, T2.nextruntime) % 1000, dateadd(second, convert(bigint, T2.nextruntime) / 1000, '19700101'))) as nextruntime


T



In FOCUS
since 1986
WebFOCUS Server 8.2.01M, 8.2.02M, 8.2.03, 8.2.04 on Windows Svr 2008 R2  
WebFOCUS App Studio 8.2.04 standalone on Windows 10 
 
Posts: 5441 | Location: United Kingdom | Registered: April 08, 2004Reply With QuoteReport This Post
Platinum Member
posted Hide Post
Is there any chance to get the jobID using DSTRUNNOW method.The current ESP job uses the Job ID and waits untio=l that job execution is completed and then archives the report files in the destination path.
 
Posts: 113 | Registered: October 25, 2017Reply With QuoteReport This Post
Platinum Member
posted Hide Post
Is there any way to get the &DSTJOBID when the schedule is ran using DSTRUNNOW method.
 
Posts: 113 | Registered: October 25, 2017Reply With QuoteReport This Post
Guru
posted Hide Post
@Siva, why not send the parameters with the Rest API?


Test: WF 8.2
Prod: WF 8.2
DB: Progress, IBM DB2, IBM UniVerse/UniData, SQLServer, MySQL, PostgreSQL, Oracle, Greenplum, Hadoop.
 
Posts: 317 | Location: Europe | Registered: February 05, 2007Reply With QuoteReport This Post
  Powered by Social Strata  
 

Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     [CLOSED] ReportCaster API using DSTRUNNOW

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