|
Hi Don, could you please show the prototype for your RPG-function? Birgitta -----Ursprüngliche Nachricht----- Von: midrange-l-bounces@xxxxxxxxxxxx [mailto:midrange-l-bounces@xxxxxxxxxxxx] Im Auftrag von Fisher, Don Gesendet: Freitag, 11. November 2005 17:04 An: 'midrange-l@xxxxxxxxxxxx' Betreff: Parameter values for SQL function call not passed correctly Well, I got my user defined function set up in SQL (see below), but when I execute the function, the parameter values contain garbage data according to debug. create function MYLIB/AFUNCTION (Parm1 CHAR (10), Parm2 CHAR (1), Parm3 CHAR (10), Parm4 CHAR (7), Parm5 CHAR (100)) RETURNS numeric (4,0) language RPGLE is DETERMINISTIC NO SQL EXTERNAL NAME 'MYLIB/MYSVCPGM(AFUNCTION)' Use VARCHAR for the parameter definitions produces the same result and using DECIMAL instead of NUMERIC for the return value produces an SQL conversion error. Any assistance will be greatly appreciated. Donald R. Fisher, III Project Manager Roomstore Furniture Company (804) 784-7600 extension 2124 DFisher@xxxxxxxxxxxxx
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.