I have to extract the runtime and some other information from the following query with the BusinessObjects XI Java SDK.
SELECT SI_STARTTIME, SI_ENDTIME, SI_NAME, SI_SCHEDULE_STATUS, SI_DESCRIPTION, SI_SCHEDULEINFO.SI_SCHEDULE_INTERVAL_MONTHS, SI_SCHEDULEINFO.SI_SCHEDULE_INTERVAL_NDAYS, SI_SCHEDULEINFO.SI_SCHEDULE_INTERVAL_NTHDAY, SI_SCHEDULEINFO.SI_SCHEDULE_INTERVAL_MINUTES, SI_SCHEDULEINFO.SI_SCHEDULE_INTERVAL_HOURS, SI_SCHEDULEINFO.SI_SUBMITTER FROM CI_INFOOBJECTS WHERE SI_INSTANCE=1
I have some trouble to extract the runtime of a scheduled job. I tried to subtract the endtime from the starttime but the result was wrong. I expected 5 seconds and 13897452000 seconds given.
Have anyone an idea how I could get the runtime of a scheduled job?