Focal Point Banner


As of December 1, 2020, Focal Point is retired and repurposed as a reference repository. We value the wealth of knowledge that's been shared here over the years. You'll continue to have access to this treasure trove of knowledge, for search purposes only.

Join the TIBCO Community
TIBCO Community is a collaborative space for users to share knowledge and support one another in making the best use of TIBCO products and services. There are several TIBCO WebFOCUS resources in the community.

  • From the Home page, select Predict: WebFOCUS to view articles, questions, and trending articles.
  • Select Products from the top navigation bar, scroll, and then select the TIBCO WebFOCUS product page to view product overview, articles, and discussions.
  • Request access to the private WebFOCUS User Group (login required) to network with fellow members.

Former myibi community members should have received an email on 8/3/22 to activate their user accounts to join the community. Check your Spam folder for the email. Please get in touch with us at community@tibco.com for further assistance. Reference the community FAQ to learn more about the community.


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

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[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: 181 | Registered: October 25, 2017Report 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 8206, Unix, Windows
 
Posts: 1853 | Location: New York City | Registered: December 30, 2015Report 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, thru 8.2.07 on Windows Svr 2008 R2  
WebFOCUS App Studio 8.2.06 standalone on Windows 10 
 
Posts: 5694 | Location: United Kingdom | Registered: April 08, 2004Report 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: 181 | Registered: October 25, 2017Report This Post
Platinum Member
posted Hide Post
Is there any way to get the &DSTJOBID when the schedule is ran using DSTRUNNOW method.
 
Posts: 181 | Registered: October 25, 2017Report 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, REST, IBM UniVerse/UniData, SQLServer, MySQL, PostgreSQL, Oracle, Greenplum, Athena.
 
Posts: 454 | Location: Europe | Registered: February 05, 2007Report This Post
Platinum Member
posted Hide Post
Hi Frans,
I could not pass the parameter with the regular ReportCaster API.(IBIRS_action = run).
Are you mentioning about some other API?

WF8105M
 
Posts: 181 | Registered: October 25, 2017Report This Post
Virtuoso
posted Hide Post
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
 
Posts: 2127 | Location: Customer Support | Registered: April 12, 2005Report This Post
  Powered by Social Strata  

Read-Only Read-Only Topic

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

Copyright © 1996-2020 Information Builders