Yosef Gold
New Member
I have routine that writes all the fields in a record to an external file.
It loops through the fields, checks each field type and writes it to a file.
I use this line to export a Raw field (i.e. a field defined as a "raw" datatype in the database):
put unformatted quoter( string( phBuffer:buffer-field(i):buffer-value ) ).
It works fine when the field is less than 32K, but when the data is >32K then I get this error:
** Start or length of SUBSTRING/OVERLAY may not be larger than 32000. (656)
** Unable to evaluate expression for PUT statement. (564)
How can I export the entire field?
(I assume that I need to export the field in 32K chunks, but I'm not sure how to do that.)
Thanks.
It loops through the fields, checks each field type and writes it to a file.
I use this line to export a Raw field (i.e. a field defined as a "raw" datatype in the database):
put unformatted quoter( string( phBuffer:buffer-field(i):buffer-value ) ).
It works fine when the field is less than 32K, but when the data is >32K then I get this error:
** Start or length of SUBSTRING/OVERLAY may not be larger than 32000. (656)
** Unable to evaluate expression for PUT statement. (564)
How can I export the entire field?
(I assume that I need to export the field in 32K chunks, but I'm not sure how to do that.)
Thanks.
Last edited: