× 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.



If you need to have something happen *if* a certain message hits a joblog, you may be better off using Watches.

Here is one example/explanation. Google is your friend on this
https://www.mcpressonline.com/programming/apis/the-api-corner-one-approach-to-system-automation


if you are looking for SQL, this could be adapted to your needs. It is from the "insert from examples" in ACS.

-- category: IBM i Services
-- description: Work Management - Active Job info - Longest active DRDA connections
--
-- Find the active DRDA jobs and compute the connection duration

WITH Active_User_Jobs(Q_Job_Name
,Cpu_Time
,Run_Priority)
AS (SELECT Job_Name
,Cpu_Time
,Run_Priority
FROM TABLE(Active_Job_Info('NO', '', 'QRWTSRVR', '')) X
WHERE Job_Status <> 'PSRW')
SELECT Q_Job_Name
,ABS(CURRENT TIMESTAMP - Message_Timestamp)
AS Connection_Duration
,Cpu_Time
,Run_Priority
,B.* FROM Active_User_Jobs
,TABLE(Qsys2.Joblog_Info(Q_Job_Name)) B WHERE Message_Id = 'CPI3E01' ORDER BY
Connection_Duration DESC;



Bryan


Steinmetz, Paul wrote on 8/28/2018 3:52 PM:
Is there a system a catalog that will check multiple jobs joblog for a specific message id?
I reviewed QSYS2.JOBLOG_INFO, but that works only a single job, and does not allow you to select a message id.

Thank You
_____
Paul Steinmetz
IBM i Systems Administrator

Pencor Services, Inc.
462 Delaware Ave
Palmerton Pa 18071

610-826-9117 work
610-826-9188 fax
610-349-0913 cell
610-377-6012 home

psteinmetz@xxxxxxxxxx<mailto:psteinmetz@xxxxxxxxxx>
http://www.pencor.com/


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.