Focal Point
[CLOSED] ReportCaster API using DSTRUNNOW

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

November 28, 2018, 10:06 AM
Siva1925
[CLOSED] ReportCaster API using DSTRUNNOW
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,
November 28, 2018, 10:56 AM
BabakNYC
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 8206, Unix, Windows
November 28, 2018, 11:21 AM
Tony A
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, thru 8.2.07 on Windows Svr 2008 R2  
WebFOCUS App Studio 8.2.06 standalone on Windows 10 
November 28, 2018, 04:29 PM
Siva1925
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.
November 29, 2018, 03:13 PM
Siva1925
Is there any way to get the &DSTJOBID when the schedule is ran using DSTRUNNOW method.
December 03, 2018, 04:49 AM
Frans
@Siva, why not send the parameters with the Rest API?


Test: WF 8.2
Prod: WF 8.2
DB: Progress, REST, IBM UniVerse/UniData, SQLServer, MySQL, PostgreSQL, Oracle, Greenplum, Athena.
January 04, 2019, 10:02 AM
Siva1925
Hi Frans,
I could not pass the parameter with the regular ReportCaster API.(IBIRS_action = run).
Are you mentioning about some other API?

WF8105M
January 09, 2019, 01:33 PM
FP Mod Chuck
Siva

If this is still an issue please open a case with techsupport.


Thank you for using Focal Point!

Chuck Wolff - Focal Point Moderator
WebFOCUS 7x and 8x, Windows, Linux All output Formats