• Subject: RE: Numeric parameters between RPG progr
  • From: Pete Hall <peteh@xxxxxxxxxx>
  • Date: Fri, 29 May 1998 01:15:34 -0500
  • In-Reply-To: <199805281526.KAA13930@iria.inwave.com>

At 07:41 AM 5/28/98 +0000, ERHARDT.BALDWIN*READING wrote:
>I've been coping with this particular problem since the early days of the   
>System/38.  What I've learned to do is never pass numeric parameters.   
> I'll pass alphanumeric parms, then MOVE them into their numeric   
>Bye the bye, if memory serves me, when a program is called with   
>parameters, the system doesn't actually pass the data to the called   
>program, it passes pointers.

That's very true. Parameters are always passed by reference in RPG. This 
particular "feature" makes it impossible to define a parameter based on the 
database data definition. That defeats any attempt to achieve data 
independence. Converting from alpha is no better. You still have hard coded 
definitions that may or may not be OK if the database changes. Really 
irritating... To borrow a phrase from Tim Allen, c'mon IBM let's walk the walk.

Pete Hall

| This is the Midrange System Mailing List!
| To submit a new message, send your mail to MIDRANGE-L@midrange.com.
| To subscribe to this list send email to MIDRANGE-L-SUB@midrange.com.
| To unsubscribe from this list send email to MIDRANGE-L-UNSUB@midrange.com.
| Questions should be directed to the list owner/operator: david@midrange.com

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