|
----- Original Message ----- From: <rob@dekko.com> To: <midrange-l@midrange.com> Sent: Thursday, November 29, 2001 5:15 PM Subject: Re: Error using a function > set path = rob3 > SET PATH statement complete. > Select iprod, iopb, iadj, irct, iiss, > OnHand(iopb,iadj,irct,iiss) > from iim > INVENTORY in ROB3 type *SRVPGM not found. > if I remember correctly, you defined the function with all four fields and the return declared as dec(11,2). So... what are the attributes of the four fields you pass in to the function? I had the same problem with the first function I wrote... SQL _so_ strongly typed on the fields definitions, that if any of those fields are, say, numeric or integer, the function will NOT be called. Since the function appears to be there and the list is probably not the problem, I would double check the typing. because DB2 is leaning towards objects now, you will find that you can create the same function with different parameter types. The signature is generated along the lines of C++ functions. =========================================================== R. Bruce Hoffman, Jr. -- IBM Certified Specialist - iSeries Administrator -- IBM Certified Specialist - RPG IV Developer "I want to be different, just like everybody else!" - Ceili Rain
As an Amazon Associate we earn from qualifying purchases.
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.