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




On 25-Apr-08, at 1:00 PM, rpg400-l-request@xxxxxxxxxxxx wrote:

Thanks for the responses. I'm new at this (ILE not RPG). I think I understand more clearly now. There was a binding directory in the H specs. I looked at it, and within one of the bound modules 'program' was defined as a subprocedure.

There were two giveaways. The absence of an ExtPgm keyword on the prototype means that the compiler defaults to ExtProc - this cannot be overridden. In fact it would have been treated as ExtPgm ('PROGRAM'). The second was the N definition for the return value. _Only_ a bound procedure can return a value. *PGMs can only "return" data via the parameters.

I would strongly suggest changing the name of the dang thing - giving a procedure the name of "program" is - to put it politely - just plain silly and as you now know - it is the kind of silliness that can waste hours!

Jon Paris

www.Partner400.com
www.SystemiDeveloper.com



As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:

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.