Try OpenEdge Now
skip to main content
ABL Data Types Addenda
Using large objects in ABL : Copying large objects : Converting code pages for CLOB and LONGCHAR values
 

Converting code pages for CLOB and LONGCHAR values

The NO CONVERT option for the COPY-LOB statement means no code page conversion is done. However, if the target is a LONGCHAR or CLOB, validation occurs for the presumed target code page.
Alternately, the CONVERT option for the COPY-LOB statement has a convert-phrase that lets you specify how the AVM converts object data:

Syntax

{
  [ SOURCE CODEPAGE codepage]
  [ TARGET CODEPAGE codepage]
}
Specify SOURCE CODEPAGE to indicate that a source object is in the specified code page. If you specify TARGET CODEPAGE, the AVM converts the target object to the specified code page.
For details on the default character conversions the AVM performs when copying data between the source and target objects, see the COPY-LOB statement entry in OpenEdge Development: ABL Reference.