|
Hi, a function always needs a return value, a stored procedure never! Stored procedures can have input AND output parameters, while you only can pass input parameters to functions. In functions all output parameters must be returned as return value. Returning a result set is not the same as returning a variable. (i.e. A result set cannot be directly read from SQLRPGLE, it's only possible by using CLI-APIs) An alternative might be using UDTF (user defined table functions), but Creation and calling UDTFs are quite different from calling STORED PROCEDURES. Mit freundlichen Grüßen i.A. Birgitta Hauser LUNZER + PARTNER GMBH Unternehmensberatung Carl-Zeiss-Straße 1 63755 Alzenau Tel: + 49 6023 951-255 Fax: + 49 6023 951-111 Internet. www.lp-gmbh.com www.rpg-schulung.de -----Ursprüngliche Nachricht----- Von: midrange-l-bounces@xxxxxxxxxxxx [mailto:midrange-l-bounces@xxxxxxxxxxxx] Im Auftrag von Walden H. Leverich Gesendet: Donnerstag, 10. November 2005 23:37 An: Midrange Systems Technical Discussion Betreff: RE: Accessing Service Programs from .NET >Am I mistaken? If not, how do I do this? No you're not mistaken, but how about: Select function(parm,parm,parm) from sysibm/sysdummy1 SysIBM/SysDummy1 is a file IBM supplies that has one row and one column. Very useful for doing SQL things that don't involve "real" data. -Walden ------------ Walden H Leverich III Tech Software (516) 627-3800 x11 WaldenL@xxxxxxxxxxxxxxx http://www.TechSoftInc.com Quiquid latine dictum sit altum viditur. (Whatever is said in Latin seems profound.)
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2025 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.