× 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 8/3/2017 4:46 PM, Dan wrote:

When I attempt to compile the test program that calls the service program,
the compile listing shows zero errors but "Errors were found during the
binding step. See the job log for more information." The job log shows:
CPD5D1D *SRVPGM object QZDMMDTA in library QSOC not found.
CPD5D02 Definition not found for symbol 'ADD'.
CPD5D02 Definition not found for symbol 'DIVIDE'.
CPD5D02 Definition not found for symbol 'MULTIPLY'.
CPD5D02 Definition not found for symbol 'SUBSTRACT'.
RNS9301 Program MATHTEST in library TESTMATHSP not created.

I have no idea what QZDMMDTA has to do with anything.

When the binder gets lost, it really gets lost. Ignore that one. The
real messages are the CPD5D02. These are saying that the binder cannot
find the procedures ADD et al. There are two places to start your
search as to why that is.

The binder starts off by looking for an ADD PI spec within MATHTEST.
Since there isn't one there, it looks at the H-spec and sees
BNDDIR('MATHDIR'). So the binder starts reading entries out of *BNDDIR
MATHDIR. And so your first thing to check: DSPBNDDIR MATHDIR and make
sure *SRVPGM MATH is in there. Check the spelling!

Assuming that's right, the binder reads the first entry in there:
*SRVPGM MATH. It then looks at this service program to see if the
*SRVPGM exports ADD and friends. And so your second thing to check:
DSPSRVPGM MATH and make sure that ADD et al are exported. Not Add -
case matters! The EXPORT in the binder source example uses quotes,
which means 'export this symbol exactly as spelt' and since the RPG
module almost certainly exports in UPPER case, if the RPG exports ADD
and the binder source exports 'add', MATHTEST isn't going to find ADD.

Personally, I don't use quotes in my binder language unless I'm
exporting a C procedure that really, really uses MixedCase().

By the bye, it looks like SUBSTRACT might be a typo in MATHTEST. Which
is another reason for CPD5D02. I told the binder to look for SUBSTRATE,
and the service program is exporting SUBTRACT. The names need to match
everywhere.


As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:
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.