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



On Wed, 2014-04-30 at 11:21 +0200, Erwin Donker wrote:
Hi,

I created a command to clear a dataqueue using the QCLRDTAQ API. After the queue has been cleared, I want the program to send a message to line 24 of the users screen indicating that the queue has been cleared.

To do this, I coded a SNDPGMMSG in the processing program as follows:

SNDPGMMSG MSGID(CPF9898) MSGF(QSYS/QCPFMSG) +
MSGDTA('Dataqueue has been cleared') +
TOPGMQ(*EXT) MSGTYPE(*STATUS)

This works. The problem however, is that when the CL-program ends (which is right after the SNDPGMMSG), the message on line 24 gets cleared. So my question is, how can I keep the message on line 24 of the users screen AFTER the program that sends the message has ended.

As I recall...

topgmq(*prv) msgtype(*info) or msgtype(*comp)

But that does mean, if I remember correctly, the "caller" must have an
embedded subfile msgf. IBM/user "ibm" menus do, or if called by a
program that program must have an active subfile msgf.

Status messages are just that, a one off quick status "I'm doing some
thing" which disappear.

Regards,
Erwin Donker



De disclaimer van toepassing op e-mail van de gemeente Den Haag vindt u op:

http://www.denhaag.nl/disclaimer



As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:
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.