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



Hi all,

Has anyone had any experience using any of the IBM precompiler API's:
QbnStartPreProcessor, QbnAddBindtimeExit and QbnEndPreProcessor?

I'm trying to 'pause' the compilation process (for a bound program using
the CRTBND* commands) between temporary module creation and the binding
phase.
According to the API documentation
(http://publib.boulder.ibm.com/cgi-bin/bookmgr/BOOKS/QB3AMV00/CCONTENTS
is the V4R5 version, but the API's don't seem to have changed) I need to
call the QbnStartPreProcessor API at the begining of my precompiler,
then call the QbnAddBindtimeExit API to define a preprocessor program to
be called after module creation but before binding, and finally call the
QbnEndPreProcessor API at the end of my preprocessor.

The calls to QbnStartPreProcessor and QbnAddBindtimeExit work fine (at
least no errors are returned in the QUSEC structure), but
QbnEndPreProcessor always throws a CPF5D23 ("Source file member has been
changed.") error. Now frankly maybe I'm in over my head here (no-one
responded to my request for information on the iSeries forum, so perhaps
no-one has used these API's?) but since I don't actually change the
contents of the source member being used for the compilation in any way,
so I don't understand the error message.

Thanks for any help,

Rory

p.s. I cross-posted this to the RPG-L list as well, but got no useful
replies (sorry Alan - your reply wasn't useful enough :-) It just seems
like no-one has used these API's.....ever.


As an Amazon Associate we earn from qualifying purchases.

This thread ...


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.