Xreplace fails on big string

  • This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.
Jan 16, 2009
My program to process text files with CRLF at the end of each line has hit a snag. Statements like these fail:
SET record_new=%@XREPLACE[\r\n\r\n,jjjj,%record]
when %record is around 8,773 bytes or larger. The statements work fine when the string is smaller.

I replaced all my @XREPLACE with @REREPLACE (there are 4 similar lines), and the program worked.