Download 'Stored Procedures, Triggers, and User-Defined Functions on DB2
Universal Database for iSeries' redbook at this link:

That should give you all you need to get started. There are RPG examples
there (i.e. chapter 15's DEC2DATE UDF).


Celebrating 11-Years of SQL Performance Excellence on IBM i, i5/OS and

-----Original Message-----
Subject: Re: Creating an SQL function

SQL doesn't support parameters by VALUE.


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

This thread ...


Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2019 by 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].