|
Currently, we have an RPG routine that does this via:I frequently make SQL UDFs (User Defined Function) from RPG sub-procedures.
D FROM C x'000102030405060708090A0B0C0D0E0F+
D 101112131415161718191A1B1C1D1E1F+
D 202122232425262728292A2B2C2D2E2F+
D 303132333435363738393A3B3C3D3E3F'
D TO C ' -
D '
C EVAL NOTE = %XLATE(FROM:TO:NOTE)
Is there a way to do this in SQL that doesn't require 64 REPLACE functions?
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.