|
Side note, I just saw this technique for the first time a few days
ago.
However, in that case, the person was trying to use it in SQL...
select translate( 'ABCD-EF-GH IJ:KL:MN'
, '20160101123059'
, 'ABCDEFGHIJKLMN' )
from sysibm.sysdummy1
Works quite nicely. However, the user was trying to do
select translate( 'ABCD-EF-GH IJ:KL:MN'
, mycolumn
, 'ABCDEFGHIJKLMN')
from mytable
And that was failing as SQL's translate() function requires a string
constant for parameter #2. <<SNIP>>
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.