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