In this blog post, you’ll learn more about the Sybase Error Invalid TEXTPTR value used with WRITETEXT or READTEXT and the reason for receiving this error
Sybase SQL Error Message
Invalid TEXTPTR value used with WRITETEXT or READTEXT
Reason for this Error
You supplied an invalid value as the TEXTPTR for a WRITETEXT or READTEXT statement.