|
David,
Item one:
You are in a multilingual environment. You should NOT use || or !!. You should use concat instead. Much like the US Dollar sign will get changed to various other characters in different character sets so will those shortcuts for concat. In fact, everyone should avoid ||. Never can tell when mergers or acquisitions may take place and put you in a multi ccsid environment.
Item two:
SELECT DIGITS(myfield)!!'_'DIGITS(myotherfield) FROM mytable
You're missing the second concat between '_' and DIGITS(myotherfield).
Rob Berendt
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.