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.