|
-----Original Message----- From: rpg400-l-bounces@xxxxxxxxxxxx [mailto:rpg400-l-bounces@xxxxxxxxxxxx] On Behalf Of Osborn, Stephen Sent: Wednesday, November 01, 2006 12:57 PM To: RPG programming on the AS400 / iSeries Subject: RE: Calling an RPG procedure with optional parameters from C code*OMIT doesn't make a parameter "optional". *OMIT means you can pass the special value of *OMIT. *NOPASS == optional. You can chose to pass something or not pass anything.I think you are splitting hairs here, especially as in my original post I said I was using *OMIT
Perhaps, but I'm doing it for very good reason. *OMIT and *NOPASS are two very different things, used for very different reasons, that work in very different ways. Unfortunately, many are not clear on the differences. By using improper terminology, we confuse the issue even more. The point is *OMIT and *NOPASS are not two different ways to make a parameter optional. *NOPASS means the procedure considers the parameter optional, *OMIT means that the procedure considers a NULL pointer valid for that parameter. I often code parameters as options(*NOPASS:*OMIT). Charles Wilt -- iSeries Systems Administrator / Developer Mitsubishi Electric Automotive America ph: 513-573-4343 fax: 513-398-1121
As an Amazon Associate we earn from qualifying purchases.
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.