Sounds like you might have vMyPointer defined in twice, locally &

One is set, the other is not and you're passing the one not set.


On Thu, Mar 21, 2019 at 4:39 PM Mohammad Tanveer <surgum@xxxxxxxxx> wrote:

Ran into some strange issue when naming *Pointer variables. V7R2

Program A SQL RPGLE calling Program B service program with parameters. One
of the parameter is Pointer.

If we name a pointer parameter variable in Program A --> vMyPointer we get
unexpected data in service program B or MCH exceptions for memory.

If we change the same variable to pMyPointer or svMyPointer everything
works fine.
This is the RPG programming on IBM i (RPG400-L) mailing list
To post a message email: RPG400-L@xxxxxxxxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
or email: RPG400-L-request@xxxxxxxxxxxxxxxxxx
Before posting, please take a moment to review the archives

Please contact support@xxxxxxxxxxxx for any subscription related

Help support by shopping at with our affiliate

This thread ...


Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2020 by 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].