Try OpenEdge Now
skip to main content
ABL Data Types Addenda
Large object data types : Character large objects : What you can do with CLOB values
 

What you can do with CLOB values

You can do the following with CLOB values:
*You can define a database table field or a temp-table field as a CLOB.
*When you define a field as a CLOB, you can specify a code page for it.
*You can use the COPY-LOB statement to copy large object data from one CLOB or LONGCHAR to another. COPY-LOB also handles moving CLOB or LONGHAR data to or from the file system. For more information, see Copying large objects on page 1.
*You can EXPORT and IMPORT CLOB data to and from disk.
*The BUFFER-COPY statement operates on CLOB fields. A BUFFER-COPY of a record with a CLOB in it results in the creation of a CLOB for the new record. Use the NO-LOBS option if you want to skip CLOB fields during BUFFER-COPY.
*You can use the dynamic BUFFER-FIELD:BUFFER-VALUE for a CLOB field in most of the same places you can use a static reference.
*To determine whether the buffer has large object fields defined in it, you can use the HAS-LOBS attribute for a BUFFER object. You can then check the data type of the buffer fields for the CLOB data type.
For examples on how to use CLOB fields in an application, see Using large objects in ABL.