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



"Brenzel, Wendy" wrote:
> 
> I am missing the boat... Please help. I am trying to compile an rpg ile test
> program, using crtbndrpg, which calls  a procedure.  The procedure is
> compiled into a module, placed in a service program, which in turn is in a
> binding directory.  The test program
> Compile message:
> 
>    Message . . . . :   Definition not found for symbol 'GetSocSec'.
> 
> 0001.00 D GetSocSec       PR             9P 0 Extproc('GetSocSec')
...
> D GetSocSec       PR             9P 0
> D InIDNo                         9P 0 Value

Wendy, as you're starting out using prototypes, it may seem easier to
code the prototype in each module separately rather than to go to the
trouble of putting it in a /COPY file, but you'll find that it will save
you time and frustration to use a /COPY member (even when you're just
experimenting).  With the prototype in the /COPY file, it's impossible
to have two different versions of the same prototype.  (You do still
(usually) have to remember to recompile everything using the prototype,
if you change it.)

By the way, for non-exported procedures, you should leave the prototype
in the same source member as the procedure.  Otherwise, it can be
confusing to have an external prototype for something that doesn't exist
externally.


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.