RAW-TRANSFER statement

Copies a record wholesale from a source to a target.

Syntax

RAW-TRANSFER
  {     [ BUFFER ]buffer    TO  [ FIELD ]raw-field
       |[ FIELD ]raw-field  TO  [ BUFFER ]buffer
       |[ BUFFER ]buffer    TO  [ BUFFER ]buffer
  }
[ NO-ERROR ]
BUFFER
Specifies a parameter is a buffer.
buffer
A source or target database record.
Note: If the source buffer contains only a partial field list, RAW-TRANSFER fails.
FIELD
Specifies a parameter is a raw-field.
raw-field
A source or target data field of type RAW.
NO-ERROR
The NO-ERROR option is used to prevent the statement from raising ERROR and displaying error messages.

Example

The following ABL example performs a RAW-TRANSFER of a newly created Customer record to the Record field of Replication-Log table:

TRIGGER PROCEDURE FOR REPLICATION-CREATE OF Customer.
CREATE Replication-Log.
ASSIGN 
  Replication-Log.Taskid = DBTASKID(LDBNAME(BUFFER Replication-Log))
  Replication-Log.Table  = 'Customer'
  Replication-Log.Action = 'CREATE'.
RAW-TRANSFER Customer TO Replication-Log.Record.

For more information on database replication, see OpenEdge Data Management: Database Administration.

Notes

See also

DISABLE TRIGGERS statement, LDBNAME function, NO-ERROR option, RAW-TRANSFER( ) method, RECORD-LENGTH function