|
Barbara, thanks for your suggestion. My first shot at this problem was
changing the stack counter to 2; unfortunately, I'm still missing
something still; at 2, the message doesn't show in either the message
subfile or the job log. At 1 the message shows in the job log.
My ILE RPG program is calling another ILE RPG program (although the
implementation will be an ILE RPG *PGM calling ILE RPG *SRVPGM).
I may start experimenting with *DIAG, I'm assuming activation groups have
nothing to do with this. I've also experimented with SNDPGMMSG in the
called program; that's no good either.
Thanks---
IRG
>From: Barbara Morris <BMORRIS@xxxxxxxxxx>
>Reply-To: RPG programming on the AS400 / iSeries <RPG400-L@xxxxxxxxxxxx>
>To: rpg400-l@xxxxxxxxxxxx
>Subject: Re: Sending messages to the previous (caller's) subfile
messagequeue
>Date: Wed, 18 Feb 2004 12:46:36 -0500
>
>ile rpg wrote:
> >
> > This is my so-called proof-of-concept code:
> > ...
> > D @clstkentry s 10 inz('*')
> > D @clstkcounter s 10i 0 inz(1)
> > D @msgkey s 4
> > D @apierr s 256
> >
> > C call 'QMHSNDPM'
> > ...
>
>If you were called as a ILE program, a stack entry of * and a stack
>counter of 1 gets to your program's PEP, not to your caller; try using
>2. (If you were called as a procedure, */1 gets to your caller.)
>
>Here's the invocation stack for an OPM program called from the command
>line (QUOCMD):
>8 QUOCMD QSYS
> PROOF QTEMP 20
>
>And for an ILE program:
>8 QUOCMD QSYS
> < _PEP_PROOF QTEMP
> PROOF QTEMP 0000000013
>
>_______________________________________________
>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.
>
----------------------------------------------------------------------
Say *good-bye* to spam, viruses and pop-ups with MSN Premium -- free trial
offer!
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2025 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.