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




https://www.ibm.com/support/pages/strwch-watch-exit-programs-explained-cl-example


WCHMSGQ <https://www.ibm.com/docs/en/i/7.5?topic=ssw_ibm_i_75/cl/strwch.html#STRWCH.WCHMSGQ> Watched message queue Values (up to 3 repetitions): Element list Optional
Element 1: Message queue Single values: *SYSOPR, *JOBLOG, *HSTLOG
Other values: Qualified object name


On Oct 3, 2023, at 1:10 PM, Roger Harman <roger.harman@xxxxxxxxxxx> wrote:

I don't believe that a watch can be set for normal job messages. I've used watches for things like disabling/enabling Network Neighborhood profiles.
Pretty sure a watch is for system level activities, not job level.
Someone will surely correct me if I'm mistaken.

Roger Harman
COMMON Certified Application Developer - ILE RPG on IBM i on Power




-----Original Message-----
From: MIDRANGE-L <midrange-l-bounces@xxxxxxxxxxxxxxxxxx> On Behalf Of bd400-gmail
Sent: Tuesday, October 3, 2023 10:49 AM
To: Midrange Systems Technical Discussion <midrange-l@xxxxxxxxxxxxxxxxxx>
Subject: Re: Library List of Data Queue Jobs (Rob Berendt)

It seems like the message IDs are known, so setup a watch program for those message IDs would help identify job at the right time.
With all the job information you can do lots of things.

I've modified this one:
https://www.mcpressonline.com/programming/apis/the-api-corner-one-approach-to-system-automation <https://www.mcpressonline.com/programming/apis/the-api-corner-one-approach-to-system-automation>

And there are probably more out there.

Bryan



On Oct 3, 2023, at 8:36 AM, Shane Reeves <SReeves@xxxxxxxxxxxxxxxxxx> wrote:

Rob, thanks - this might work out. I threw on the timestamp and that should help me to locate the issue next time it comes up.

select message_id, MESSAGE_TEXT, MESSAGE_TIMESTAMP
from table(qsys2.joblog_info('375858/EDI/{job}')) a where message_id in('CPC2196', 'CPC2197', 'CPC2198')

For those suggesting to look at what starts the job - I have. But there seems to be something else modifying the job later on. Because there are hundreds of different programs that run under it for the various EDI send processes, exit programs, and other special processing it hasn't been feasible to review them all. Nothing obvious has come up through text searches.
--
This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing list
To post a message email: MIDRANGE-L@xxxxxxxxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: https://lists.midrange.com/mailman/listinfo/midrange-l
or email: MIDRANGE-L-request@xxxxxxxxxxxxxxxxxx
Before posting, please take a moment to review the archives
at https://archive.midrange.com/midrange-l.

Please contact support@xxxxxxxxxxxxxxxxxxxx for any subscription related questions.


--
This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing list
To post a message email: MIDRANGE-L@xxxxxxxxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: https://lists.midrange.com/mailman/listinfo/midrange-l
or email: MIDRANGE-L-request@xxxxxxxxxxxxxxxxxx
Before posting, please take a moment to review the archives
at https://archive.midrange.com/midrange-l.

Please contact support@xxxxxxxxxxxxxxxxxxxx for any subscription related questions.

--
This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing list
To post a message email: MIDRANGE-L@xxxxxxxxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: https://lists.midrange.com/mailman/listinfo/midrange-l
or email: MIDRANGE-L-request@xxxxxxxxxxxxxxxxxx
Before posting, please take a moment to review the archives
at https://archive.midrange.com/midrange-l.

Please contact support@xxxxxxxxxxxxxxxxxxxx for any subscription related questions.



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.