Bryan,
I modified your example below, looking at all jobs, checking for CPF1124.
Worked, took about 20 minutes for results.
Then I only changed the message id to KTA0203.
Ran for a long time, then returned 
Query cannot be run.  See lower level messages.
Message file CUSRMSG in *LIBL not found.       
User-defined function error on member QSQPTABL.
I think the issue is the SQL is not handling a different message file RXS/ RXSMSGF.
What change are needed on the SQL to handle this.
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', '', '*ALL', '')) 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 =  
'KTA0203' ORDER BY                                                  
            Connection_Duration DESC                                
Paul
-----Original Message-----
From: MIDRANGE-L [mailto:midrange-l-bounces@xxxxxxxxxxxx] On Behalf Of Bryan Dietz
Sent: Tuesday, August 28, 2018 4:19 PM
To: Midrange Systems Technical Discussion
Subject: Re: Is there a system a catalog that will check multiple jobs joblog for a specific message id?
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.