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



Sweet mama that was it!

I ran
drop function onhand
a couple of times to make sure it was good and dead.  Then I ran
create function ROB3/ONHAND (dec (11,3), dec (11,3), dec (11,3),
                        dec (11,3))
returns dec (11,3)
language rpgle
deterministic
no sql
returns null on null input
no external action allow parallel
simple call
external name 'ROB3/INVENTORY(ONHAND)'

Now when I do
Select iprod, iopb, iadj, irct, iiss,
       ONHAND(iopb,iadj,irct,iiss)
from iim
It works slick.

Thank you Simon!  And thanks to the rest of you for your efforts!

Now, I'll update my pmr to get them to change their misleading error
message.

Rob Berendt

==================
"They that can give up essential liberty to obtain a little temporary
safety deserve neither liberty nor safety."
Benjamin Franklin



                    "Simon Coulter"
                    <shc@flybynight.com       To:     midrange-l@midrange.com
                    .au>                      cc:     RPG400-L@midrange.com
                    Sent by:                  Fax to:
                    midrange-l-admin@mi       Subject:     Re: Error using a 
function
                    drange.com


                    11/29/2001 06:17 PM
                    Please respond to
                    midrange-l






M
Hello Rob,

My guess as to the problem.  I suspect that SQL respects case in order
support languages like C and Java.  RPG does not respect case so I think
"external name 'ROB/INVENTORY(OnHand)'" is causing in SQL to look for a
procedure called OnHand when the service program has really exported
ONHAND.  Try changing "external name 'ROB/INVENTORY(OnHand)'" to "external
name 'ROB/INVENTORY(ONHAND)'

Regards,
Simon Coulter.

«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»
«» FlyByNight Software         AS/400 Technical Specialists       «»
«» Eclipse the competition - run your business on an IBM AS/400.  «»
«»                                                                «»
«» Phone: +61 3 9419 0175   Mobile: +61 0411 091 400        /"\   «»
«» Fax:   +61 3 9419 0175   mailto: shc@flybynight.com.au   \ /   «»
«»                                                           X    «»
«»               ASCII Ribbon campaign against HTML E-Mail  / \   «»
«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»
_______________________________________________
This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing list
To post a message email: MIDRANGE-L@midrange.com
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/cgi-bin/listinfo/midrange-l
or email: MIDRANGE-L-request@midrange.com
Before posting, please take a moment to review the archives
at http://archive.midrange.com/midrange-l.







As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:

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.