PreviousNextIndex

COPY-LOB statement

Copies large object data between BLOBs, CLOBs, MEMPTRs, and LONGCHARs. It also copies large object data to and from the file system, and converts large object data to or from a specified code page.

Note: You cannot copy large object data between BLOBs and CLOBs directly. However, you can copy a BLOB or CLOB to a MEMPTR or LONGCHAR (which converts the data) and then copy the MEMPTR or LONGCHAR to the CLOB or BLOB, respectively.
Syntax

COPY-LOB  
  [ FROM ] { [ OBJECT ] source-lob | FILE source-filename }  
     [ STARTING AT n ] [ FOR length ] 
  TO { [ OBJECT ] target-lob [OVERLAY AT n [TRIM ] ] |  
     FILE target-filename [ APPEND ] } 
  [ NO-CONVERT | CONVERT convert-phrase ]  
  [ NO-ERROR ]. 

[ OBJECT ] source-lob
FILE source-filename
STARTING AT n
FOR length
[ OBJECT ] target-lob
OVERLAY AT n [ TRIM ]
FILE target-filename [ APPEND ]
NO-CONVERT | CONVERT convert-phrase
NO-ERROR
Notes

OpenEdge Release 10.2B
Copyright © 2009 Progress Software Corporation
PreviousNextIndex