× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



select x.message_timestamp as start_time,
y.message_timestamp as end_time,
y.message_timestamp - x.message_timestamp as job_duration,
x.from_job, y.from_job
from table(qsys2.history_log_info(current date - 2 days,
timestamp((current date - 1 days)) - 1 seconds)) x
full outer join table(qsys2.history_log_info(current date - 2 days,
timestamp((current date - 1 days)) - 1 seconds)) y
using (from_job)
where x.message_id = 'CPF1124' and y.message_id = 'CPF1164';

There are rare occasions where the end time is before the start type, by
milliseconds.

I'll leave it up to you to convert this decimal
y.message_timestamp - x.message_timestamp as job_duration,
to a time or timestamp field.


Rob Berendt

As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:
Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.