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



Thanks John,

I did look at your example and changed my program accordingly.
I changed the Call Stack Entry = 'MYPROGRAM' and Call Stack Counter = 0.
When I ran the program no message was displayed. When I ran the program in
debug it definately sent the message but nothing appeared on the screen.
This is the approach I'm trying to achieve (not having to specify the Call
Stack Counter for each procedure I'm in) but I'm still unable to accomplish
it.

Do you have any insight?

Thanks,

Rob

On Thu, Mar 11, 2010 at 2:13 PM, John McKay <jmckay@xxxxxxxxxxxxxxxx> wrote:

At www.rpglanguage.com/message_subfile I have an example of what I think
you
are looking for. All the parameters, except for message id and message
queue, are defaulted and the QMHSNDPM is stored in a procedure z_sndmsg.

You can contact me directly for more clarification.


Regards,
John McKay mba

----- Original Message -----
From: "Robert Rogerson" <rogersonra@xxxxxxxxx>
To: <RPG400-L@xxxxxxxxxxxx>
Sent: Thursday, March 11, 2010 6:07 PM
Subject: Displaying a message using QmhSndPm...


I don’t quite understand the Call Stack Entry and Call Stack Counter
combination.
What I have currently, and working, is as follows:

Mainline
QmhSndPm( ‘XXX9999’ : ‘QCPFMSG *LIBL’ : sndData : %Len(sndData) :
‘*INFO’ : ‘*’ : 1 : sndMsgKey : errorCode);
Process1();

In Process1 I have
QmhSndPm( ‘XXX9999’ : ‘QCPFMSG *LIBL’ : sndData : %Len(sndData) :
‘*INFO’ : ‘*’ : 2 : sndMsgKey : errorCode);
Process2();

In Process2 I have
QmhSndPm( ‘XXX9999’ : ‘QCPFMSG *LIBL’ : sndData : %Len(sndData) :
‘*INFO’ : ‘*’ : 3 : sndMsgKey : errorCode);

So as it stands all three messages are sent to the display as expected.
I would like to create a procedure called SendMessage with one parameter
messageId (Char 7).

Is this possible and if so what should be the values of the Call Stack
Entry
and Call Stack Counter combination?

Thanks,

Rob
--
This is the RPG programming on the IBM i / System i (RPG400-L) mailing list
To post a message email: RPG400-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/rpg400-l
or email: RPG400-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/rpg400-l.

--
This is the RPG programming on the IBM i / System i (RPG400-L) mailing list
To post a message email: RPG400-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/rpg400-l
or email: RPG400-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/rpg400-l.



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.