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


  • Subject: RE: MONMSG question
  • From: Buck Calabro <mcalabro@xxxxxxxxxxxx>
  • Date: Tue, 18 May 1999 11:12:24 -0400

>Gerald Magnuson wrote:
>
>I have this monmsg command at the top of my CL program:
>MONMSG  MSGID(CPA0000 CPF0000 CPF9999)
>
>I thought that this ment to trap messages CPA0000-CPA9999, and
>CPF0000-CPF9999.

It means exactly that.

>The program performs several SAVLIB's to save files.   One save file was
not
>empty.
>message CPA4067 was issued (save file already contains data(C G)). The
>default reply is C.
>However, the CL program just hung, waiting for a response.

This is an inquiry message, which requires a reply unless you are running
INQMSGRPY(*DFT) or (*SYSRPYL)  You can't monitor for these, although you
could write a message handling program to process them once they've been
issued...

>Does the "Generic monitor" (use zeros to trap inclusive numbers) only work
>with CPF messages?

No, this works for all messages, including RPG, MCH, etc.

>Are there certain messages that cannot be monitored?

Only escape, status or notify messages can be monitored for.  The CL
Programming guide has a chapter on message handling; see the section on
Monitoring for Messages in a CL Program or Procedure for more details.

+---
| This is the Midrange System Mailing List!
| To submit a new message, send your mail to MIDRANGE-L@midrange.com.
| To subscribe to this list send email to MIDRANGE-L-SUB@midrange.com.
| To unsubscribe from this list send email to MIDRANGE-L-UNSUB@midrange.com.
| Questions should be directed to the list owner/operator: david@midrange.com
+---


As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:

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.