Alan,
Download 'Stored Procedures, Triggers, and User-Defined Functions on DB2
Universal Database for iSeries' redbook at this link:
http://www.redbooks.ibm.com/abstracts/sg246503.html?Open
That should give you all you need to get started. There are RPG examples
there (i.e. chapter 15's DEC2DATE UDF).
Elvis
Celebrating 11-Years of SQL Performance Excellence on IBM i, i5/OS and
OS/400
www.centerfieldtechnology.com
-----Original Message-----
Subject: Re: Creating an SQL function
SQL doesn't support parameters by VALUE.
Charles
On Mon, Sep 29, 2008 at 1:32 PM, Alan Shore <AlanShore@xxxxxxxx> wrote:
Here you go Charles
D SUBPROC pr 9 0
D ItemSuffix 4 value
D Sku# 6 value
Alan Shore
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.