×
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.
I have a string of text in a database field that was a result of CPYFRMIMPF.
I know the string contains x'0D' (CR) several places... I can see it in debug when I place that field into a data structure subfield (SQL Select Into).
I'm trying to use %SCANRPL to replace the CR with a pipe character... it simply doesn't do it. What the heck am I doing wrong?
dcl-c PIPE const('|');
dcl-c CR const(x'0D');
rp(x).note = %scanrpl(CR:PIPE:rp(x).note);
In debug, the value of my character field looks like this (literally):
Dear Michelle and Dillon,
Sending heartfelt congratulations to you both on your wedding with wishes for health and happiness in your marriage.
All our best,
Jessica, Chris, Jake, Eryn and Cate Brown
If I change the representation to HEX, it looks like this:
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.