|
I've been going around and around on this. I've done scalar UDF's but this has me stumped.
I want to create a UDF that returns a text description from a reference file. In this case, supplier names are externally stored.
I currently do this with a join but it is a pain to repeat over & over. Also, the external file is multi-use and contains descriptions and other data for thousands of circumstances. So, this could be a big time saver for me.
example: select CompanyNbr, ItemNbr, SupplierNbr, GetSupplierName(CompanyNbr, ItemNbr, SupplierNbr) from ItemMaster
I have yet to find a decent example showing this. Does anyone have an example? Also having trouble with long name versus specific name.
Thanks!
Roger Harman
COMMON Certified Application Developer - ILE RPG on IBM i on Power
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.