|
Had forgot about that - it does the trick and beautifully!
Here's the result -
SELECT
case
when substr(chr1,length(chr1),1) between '0' and '9' then 1
else -1
end *
zoned(
substr(chr1,1,length(chr1)-1) concat
lor(x'F0', substr(chr1,length(chr1),1))
)
FROM vern/chrtozon
The CASE construct determines the sign.
The LOR forces the final character to a positive number.
So it's the sign times the absolute value - which would not be
usable here, I suppose.
VOILA!
BTW, I'll be in Rochester mid-November - maybe can get together.
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.