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



I once had a BSF class member put into an email, "I just want to get the
answer, not learn anything" which is the way Google and the Internet
work these days...sigh. Unfortunately, that is my "rush" technique as
well so while I don't recall hitting the Midrange wiki in my search for
answers to this issue, I did see references to CL and commands. I
centered on CL because I had a recollection that I had to "wrap" the
program in....well*something*. Wrapping it with a CL didn't work and
so I headed down "non-wrapping" method paths which took me nowhere.

Once the "call it using a command" was drilled into my head, it fixed
the problem right away. In this*particular* case I both got the answer
and learned something! The best way to present something that is THE
answer is to state upfront (in this case): "Just use a command to call
the RPG program and all will be well and IF you want to learn why, the
following is that explanation....." I may or may not read on, but at
least I have my answer.

Again, everything posted here was very helpful. Normally, I try to
solve stuff myself rather than post here, because in the process I learn
something. In this particular case....I couldn't sort out what THE
answer was.

Pete Helgren
www.petesworkshop.com
GIAC Secure Software Programmer-Java

On 2/12/2015 10:25 AM, Jon Paris wrote:
When I’ll find time to have a crack at fixing it is another matter Buck - but it does seem to me that the wiki entry is wayyyyy over complicated. Certainly in its opening section. All the stuff on the PASA is overkill to my mind and would tend to confuse anybody who actually needs the answer.

But maybe it’s just me.


Jon Paris

www.partner400.com
www.SystemiDeveloper.com

On Feb 12, 2015, at 9:54 AM, Buck Calabro <kc2hiz@xxxxxxxxx> wrote:

On 2/12/2015 6:34 AM, Vernon Hamberg wrote:
Back to the Future -- CL 101!!

This is all described in something like chapter 9 of the CL Programming
manual. It includes the several alternatives that others have given here.
With the advent of internet / HTML based manuals, I find it really
difficult to give a canonical reference.
http://www-01.ibm.com/support/knowledgecenter/ssw_ibm_i_72/rbam6/passp.htm
which is
Programming > Control language > CL programming > Controlling flow and
communicating between programs and procedures > Passing parameters

It seems to me that this is THE most frequently asked question about
programming. We had a FAQ page on it when we had a Midrange FAQ (thanks
David!) and we have a wiki page on it now (Thanks David!)
http://wiki.midrange.com/index.php/Parameter_passing

If there are some words that can be put in the wiki that would help
people understand what is happening, I would love to add them. In
essence, this is a buffer overflow situation: the callee is reading more
memory than the caller allocated.

On 2/11/2015 4:55 PM, Pete Helgren wrote:
Thanks all... I guess I HAD been in the habit of building commands to
run the program but I certainly had forgotten that....

You folks also gave me some other approaches which I may check out,
but wrapping it with a command was the easiest and it works great.
I always do it with a command.

--
--buck

'I had nothing to offer anybody except my own confusion' - Jack Kerouac
--
This is the RPG programming on the IBM i (AS/400 and 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 thread ...

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.