|
Vern Hamberg wrote:
<<SNIP>>
If you CAN deal with a full variable and writing it back out to a
different stream file, I like using the SQL replace function -
that replaces all instances of the search string with the
replacement value - very cool. Just use a SET statement.
RPG's replace() can do the job, so long as you do it in a loop
that uses somewhere around the last found position as the start
from value in a loop. SQL is so much easier!!
Of course each implementation will have potential difficulties. Just be sure to [know how to] deal with the potential or actual truncation [sqlwarn ??] issue due to expansion of the data in a column or variable. :-)
Regards, Chuck
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.