Welcome!

By registering with us, you'll be able to discuss, share and private message with other members of our community.

SignUp Now!

Xreplace fails on big string

Jan
45
0
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.
 
Yes, @XREPLACE uses an 8K buffer. I think you'll run into a problem with @REREPLACE at around 32K.
 
Back
Top