I am trying to come up with a SQL Statement that will allow me to produce a report showing the status of reports that have been run by the DAS (SQL 7, BO 4.1.5).
I have found that the UTC definition that Business Objects has provided does not match with what I have seen. When I calculate the number of seconds since December 15th, 1970 at midnight, I am off by 5 hours and have to adjust my query accordingly. Furthermore I have found that when a document has not yet finished (either waiting or running) then the date is bumped ahead by 37 years.
I am very confused as to what is happening on the back end. I know that there has to be some sort of logical explanation, because when you look at the log for the Document Agent Server then everything is calculated properly.
Below is the query that I am using. Any ideas what more I can do? Why am I off by 5 hours for completed jobs? Why am I off by 37 years for non-completed jobs? The information that I used regarding the repository and UTC date format was found on the CD at K:\freeware\Repostry\RPDSPJ.HTM.
Thank you in advance,
Simon Miller
Information Analyst
I.T. North America
DiverseyLever
select
right(obj_m_documents.m_doc_c_name,45),
DATEADD(second,(convert(decimal,(ds_pending_job.SUBMIT_DATETIME))),‘1970-12-14 19:00:00.000’) ‘Submit Date/Time’,
DATEADD(second,(convert(decimal,(ds_pending_job.START_DATETIME))),‘1970-12-14 19:00:00.000’) ‘Start Date/Time’,
DATEADD(second,(convert(decimal,(ds_pending_job.END_DATETIME))),‘1970-12-14 19:00:00.000’) ‘End Date/Time’,
ds_pending_job.JOB_STATUS,
ds_pending_job.JOB_ERROR,
ds_pending_job.ERROR_TEXT
from
ds_pending_job,
obj_m_documents
where ds_pending_job.document_id = obj_m_documents.m_doc_n_id
Listserv Archives (BOB member since 2002-06-25)