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



Have the pre-compiler generate the intermediate source and examine
that. This sort of thing is usually caused by the sequence of
declarations. There is something in your coding style that is
confusing the pre-compiler and it is putting its definitions in a spot
that the subsequent RPG compiler either cannot see or is treating as
part of something else. There was a particularly stupid example shown
on this list in recent months but, of course, I can't find it now.

Thank you, Simon, that step led me to the solution: change /COPY to
/INCLUDE. At this client, rather than Service Programs, they tend to use
copy code, in a single member. The member has the prototypes and the
procedures separated by /IF DEFINED() compiler directives. You set the
appropriate DEFINEs and /copy (sorry, /include) the source member toward the
top and the bottom of the source.

Apparently, when it saw the procedure interfaces (since /DEFINEs are not
understood by this compiler) it decided to insert the definitions there.

... and then at CRTRPGPGM time, the code that contained those definitions
was excluded due to an /IF DEFINED() that wasn't. :)

Thanks for the tip, Simon. Very useful!

Dennis Lovelady
http://www.linkedin.com/in/dennislovelady
--
"When you go into court you are putting your fate in the hands of twelve
people who weren't smart enough to get out of jury duty."
-- Norm Crosby




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.