When assigning the value of a MEMPTR to a LONGCHAR variable

Posted by Hema Ravi Teja Bollam on 17-Mar-2016 10:53

When assigning the value of a MEMPTR to a LONGCHAR variable using GET-STRING, i got an error 9324 (Attempt to exceed maximum size of a CHARACTER variable) is there any solution ?

Thanks in advance,

Ravi,

All Replies

Posted by pliscki on 17-Mar-2016 10:59

Yes, there is.

Use the command COPY-LOB from <source> to <target>.

Posted by pliscki on 17-Mar-2016 11:02

Avoid using GET-STRING when the size of the memptr variable is unknown.

GET-STRING expects a character parameter, whichh has a maximum size of 31991 bytes.  Hence the error.

Posted by Hema Ravi Teja Bollam on 18-Mar-2016 03:11

Thank you very much !

This thread is closed