Xreplace fails on big string

Jan 16, 2009
45
0
#1
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.