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



Good catch, Chris. Thanks for that, and for the explanation.
There were no modules in the PROVISION Binding Directory, so I stripped the that from the BNDDIR() parameter and re-created the NEONOVAAPI *srvpgm.

Michael Koester

-----Original Message-----
From: RPG400-L [mailto:rpg400-l-bounces@xxxxxxxxxxxx] On Behalf Of
Hiebert, Chris
Sent: Wednesday, December 30, 2015 10:10 AM
To: RPG programming on the IBM i (AS/400 and iSeries)
Subject: RE: Stray module in service program

--BNDDIR(... *LIBL/PROVISION ...)
--BNDSRVPGM(... PROVISION)

Assuming PROVISION service program is the only thing in the PROVISION
binding directory, you shouldn't need to include both the binding
directory and the service program.

BNDSRVPGM
By binding the service program you are giving every module in your new
service program direct access to the bound service program. This Means
that they will use the last updated version of PROVISION service program
at runtime.

BNDDIR
By using the binding directory, you are telling the compiler that it
should lookup other references in the binding directory.

If the reference is a module reference, that module will be included at
compile time. Meaning your NEONOVAAPI will need to be updated every time a
change is made to the modules used.

If the reference is a service program reference, then it is the same thing
as using the BNDSRVPGM option on the compile.

Doing both can sometimes cause strange duplicate reference errors.

Chris Hiebert
Senior Programmer/Analyst
Disclaimer: Any views or opinions presented are solely those of the author
and do not necessarily represent those of the company.


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.