Expanding on Robs Solution and maybe answering Mark's original question

select
timestampdiff(2, char(current timestamp - job_entered_system_time)) as seconds_since_IPL
,timestampdiff(4, char(current timestamp - job_entered_system_time)) as minutes_since_IPL
,timestampdiff(8, char(current timestamp - job_entered_system_time)) as hours_since_IPL
,timestampdiff(16, char(current timestamp - job_entered_system_time)) as days_since_IPL
,timestampdiff(32, char(current timestamp - job_entered_system_time)) as weeks_since_IPL
,current timestamp as Time_now
,job_entered_system_time
from table(qsys2.active_job_info(JOB_NAME_FILTER => 'SCPF',DETAILED_INFO => 'ALL')) B ;

1 : Fractions of a second
2 : Seconds
4 : Minutes
8 : Hours
16 : Days
32 : Weeks
64 : Months
128 : Quarters of a year
256 : Years



Bryan


Rob Berendt wrote on 2/20/2020 4:00 PM:
select job_name, job_active_time, job_entered_system_time
from table(qsys2.active_job_info(
RESET_STATISTICS => 'NO',
SUBSYSTEM_LIST_FILTER => '' ,
JOB_NAME_FILTER => 'SCPF',
CURRENT_USER_LIST_FILTER => '',
DETAILED_INFO => 'ALL'
)) B

Rob Berendt


As an Amazon Associate we earn from qualifying purchases.

This thread ...

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.