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



James H. H. Lampert wrote:
I have a CL program that communicates with the user mainly via
SNDPGMMSG and SNDUSRMSG. (User interaction is minimal, confined
to confirmation and error messages.)

I now have a situation in which I would like to send a message
requiring no response to the "Display Program Messages" screen,
immediately (i.e., without waiting) before sending one that does
require a response.

In other words, when the "Display Program Messages" screen pops
up, it should show both the first, informational message, and the
second, inquiry message, e.g.,

FOO is in state BAR. Are you sure you wish to perform the BAZ
operation on FOO? (Y N)

I know that sort of thing is easy enough to do with DSPLY
statements in RPG, but at least in the permutations of SNDUSRMSG
and SNDPGMMSG I've tried so far from CL, it always either waits,
or doesn't send the message.


One method to accomplish the effective result, would be to embed the first message as part of the inquiry message; e.g. similar to how the generic inquiry unmonitored exception handlers for the languages are coded. Use RTVMSG instead of SNDPGMMSG for the first message, and then send whatever relevant data string(s) [generated by the RTVMSG; e.g. first level text] as replacement variables for the inquiry message. Review DSPMSGD CPA0701 as an example. In the given example perhaps what is meant would be handled by:

MSG('&1 Are you sure you wish to perform &3 on &4? (Y N)')

Regards, Chuck

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.