× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



"MIDRANGE-L" <midrange-l-bounces@xxxxxxxxxxxx> wrote on 10/23/2018
10:50:37 AM:
"MIDRANGE-L" <midrange-l-bounces@xxxxxxxxxxxx> wrote on 10/23/2018
10:28:50 AM:
Currently, we have an RPG routine that does this via:

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?


There should be a way to do that with the REGEX_REPLACE SQL
function.


Type. That would be REGEXP_REPLACE.


Sincerely,

Dave Clark

As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:
Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

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.