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



Perhaps you need to RTFM?

ILE RPG Programmers Guide (pp 137 -138 for v5r4)

Advantages of passing by value or read-only reference Passing by value
or read-only reference allows you to:
v Pass literals and expressions as parameters.
v Pass parameters that do not match exactly the type and length that
are expected.
v Pass a variable that, from the caller’s perspective, will not be modified.

One primary use for passing by value or read-only reference is that
you can allow less stringent matching of the attributes of the passed
parameter. For example, if the definition is for a numeric field of
type packed-decimal and length 5 with 2 decimal positions, you must
pass a numeric value, but it can be:
v A packed, zoned or binary constant or variable, with any number of
digits and number of decimal positions
v A built-in function returning a numeric value
v A procedure returning a numeric value
v A complex numeric expression such as 2 * (Min(Length(First) +
Length(Last) + 1): %size(Name))

Charles

On Tue, Mar 27, 2012 at 1:20 PM, Dave <dfx1@xxxxxxxxxxxxxx> wrote:

That should go in the FM!

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.