There is a technique that should get everything - send a PGM message at the start with returning a msg key - store the key, remove the message. At the end, do the same. Run a loop, from the first key to the second and RCVMSG using the msg key - there's a message to monitor for when it doesn't exist - check msgtype and do the *DIAG thing.

This comes from IBM - there's a KB on it, I forget, something about getting all messages in the job log.

HTH
Vern

On 3/19/2012 1:40 PM, Gqcy wrote:
I am struggling with getting a string of CL going to retrieve ALL the
*DIAG messages from my job log at signoff time.

I have tried all kinds of
varations of parms (PGMQ, MSGQ, MSGTYPE, MSGKEY,) but I haven't found
the right combination...



I am going to output the *DIAG messages to a log.



This thread ...

Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2020 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].