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



"Peter Dow (ML)" wrote:

Good catch!  I got the code from

http://publib.boulder.ibm.com/infocenter/iseries/v5r3/topic/sqlp/rbafyexamudfcounter.htm

and converted it to RPGLE.  I think my translation was correct (I'm not
a C programmer), so the original had a similar problem, although the
effects in C may be different.


Your translation _was_ correct.  The C version has the same problem if
you change the entire structure (say memset it to 0x00). The visible
effects would depend more on how SQL allocates the scratchpad, than on
RPG or C.

It looks like you can specify the size of the scratchpad area on the SQL
function definition, but the size defaults to 100.


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.