|
Rich Dotson RT3 Consulting Services, Inc. P.O. Box 126 Lorain, OH 44052-0126
From: CWilt@xxxxxxxxxxxx Reply-To: RPG programming on the AS400 / iSeries <rpg400-l@xxxxxxxxxxxx> To: rpg400-l@xxxxxxxxxxxx Subject: RE: Message Subfile problems in Procedures Date: Wed, 5 May 2004 12:56:09 -0400
Rich,
As Buck mentions, its probably got to do with where you are at in the call stack and where you are sending the message to.
When I did this and ran into the same problem, I changed the QMHSNDPM "Call Stack Entry" parameter to the name of the mainline program and used a "Call Stack Counter" parm of zero.
I assume that your message subfile is set up to watch the mainline message queue (either by putting a '*' or the mainline program name in whatever field has the SFLPGMQ keyword in the display file). Thus, you want to make sure you send the entry to the program queue your subfile is watching.
HTH, Charles
> -----Original Message----- > From: Rich Dotson [mailto:rich_dotson@xxxxxxxxxxx] > Sent: Wednesday, May 05, 2004 10:12 AM > To: rpg400-l@xxxxxxxxxxxx > Subject: Message Subfile problems in Procedures > > > In an interactive (/Free) program of mine I am using the > QMHSNDPM API to > send messages to the MSGSFL and display the error message to > the user. > This works great as long as I am in the "main-line" section > of my code. If > I move the section of code to a procedure within the same program the > message does not appear. Any suggestions? > > Rich Dotson > RT3 Consulting Services, Inc. > P.O. Box 126 > Lorain, OH 44052-0126 > > Phone: 1-216-556-1710 > eMail: Rich_Dotson@xxxxxxxxxxx > > _________________________________________________________________ > FREE pop-up blocking with the new MSN Toolbar ?Hget it now! > http://toolbar.msn.com/go/onm00200415ave/direct/01/ > > _______________________________________________ > This is the RPG programming on the AS400 / iSeries (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 AS400 / iSeries (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 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.