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.
Windows 10This message has been edited. Last edited by: FP Mod Chuck,
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 8204, Unix, Windows
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
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.
Is there any way to get the &DSTJOBID when the schedule is ran using DSTRUNNOW method.
@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.
I could not pass the parameter with the regular ReportCaster API.(IBIRS_action = run).
Are you mentioning about some other API?
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
|Powered by Social Strata|