BUFFER-COPY statement

Performs a bulk copy of a source record to a target record by copying each source field to the target field of the same name. You can specify a list of fields to exclude from the bulk copy, or a list of fields to include in the bulk copy. You can also specify WHEN...THEN phrases. For each such phrase, BUFFER-COPY executes the THEN portion if the corresponding WHEN portion evaluates to TRUE.

Syntax

BUFFER-COPY source [ { EXCEPT | USING } field ... ]
  TO target [ ASSIGN assign-expression ... ] [ NO-LOBS ] [ NO-ERROR ]
source
The source database table, buffer, temp-table, or work table.
EXCEPT field ...
A list of space-separated source fields to exclude from the bulk copy.
USING field ...
A list of space-separated source fields to include in the bulk copy. The USING option is simply a positive version of the EXCEPT option.
TO target
The source database table, buffer, temp-table, or work table.
ASSIGN assign-expression
A space-separated list of any valid ABL ASSIGN statements (without the EXCEPT option, which BUFFER-COPY already provides). BUFFER-COPY performs each assign-expression and automatically excludes the field on the left side ("destination") of each assign-expression from the bulk copy-except for field extents (subscripted fields). If a field extent appears on the left side of an assign-expression, BUFFER-COPY does not automatically exclude that extent (such as customer.mnth-sales[1]) or the field as a whole (such as customer.mnth-sales) from the bulk copy.
NO-LOBS
Directs the AVM to ignore large object data when copying records that contain BLOB or CLOB fields.
Caution:
Using this option can create the potential for errors in your data and lead to inappropriate results. Therefore, before using this option, you must understand the nature of your data and be sure that logic using this option will not result in inconsistent or out-of-date data in the database.
NO-ERROR
The NO-ERROR option is used to prevent the statement from raising ERROR and displaying error messages.

Notes

See also

BUFFER-COMPARE statement , NO-ERROR option