|
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 aspecific message id?
I reviewed QSYS2.JOBLOG_INFO, but that works only a single job, and doesnot 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/
This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing list
To post a message email: MIDRANGE-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: https://lists.midrange.com/mailman/listinfo/midrange-l
or email: MIDRANGE-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at https://archive.midrange.com/midrange-l.
Please contact support@xxxxxxxxxxxx for any subscription related
questions.
Help support midrange.com by shopping at amazon.com with our affiliate
link: http://amzn.to/2dEadiD
As an Amazon Associate we earn from qualifying purchases.
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.