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



You better believe it!

It is not prototypes you don't understand but rather the calling mechanisms the system uses.

When calling procedures, passing by value means that the actual data (i.e. 10 bytes in your case) is pushed onto the stack. When calling by reference (including Const parms) a pointer (16 bytes) is pushed on the stack.

For program calls only pass by reference is supported.

Check out this article which goes into parameter passing differences. https://www.itjungle.com/2017/02/20/guru-parameter-passing-fundamentals-programs-versus-procedures/ <https://www.itjungle.com/2017/02/20/guru-parameter-passing-fundamentals-programs-versus-procedures/>


Jon Paris

www.partner400.com
www.SystemiDeveloper.com

On Dec 19, 2018, at 1:58 PM, John Yeung <gallium.arsenide@xxxxxxxxx> wrote:

Hm. Some very simple tests using *ENTRY parameters and dates expressed
as 10-character ISO strings (without embedded quotes) worked. For
example, '2018-12-25' was recognized as a valid date, and was
successfully operated on by the called RPG program.

Which leaves me in the uncomfortable position of admitting that I
really don't understand ILE prototypes well enough. Does it make a
difference whether the date parameter in question is defined as
pass-by-value?

I should mention that another procedure in the same service program
was called successfully through the iSrvPgm interface, but it had no
parameters and only returned a numeric value.

John Y.
--
This is the IBMi Open Source Roundtable (OpenSource) mailing list
To post a message email: OpenSource@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: https://lists.midrange.com/mailman/listinfo/opensource
or email: OpenSource-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at https://archive.midrange.com/opensource.

Help support midrange.com by shopping at amazon.com with our affiliate
link: https://amazon.midrange.com


As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:
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.