Transfer routines

Bulk-Library applications transfer data using routines that are similar to Client-Library’s ct_bind, ct_recvpassthru, and ct_sendpassthru routines.

Both Bulk Library and Client-Library applications use CS_DATAFMT structures to describe program variables for binding, and both support array binding.

blk_describe sets fields in a CS_DATAFMT structure. An application can use this CS_DATAFMT structure in the blk_bind call that binds the column to a program variable.

Some of CT-Library’s bcp_bind parameters map to fields in the CS_DATAFMT structure, but there are no equivalents for other parameters. In particular, Bulk Library has no equivalents for bcp_bind’s length prefix, terminator, and terminator length parameters. Applications use blk_bind’s datalen parameter to specify the number of bytes to copy from program variables, or to determine the number of bytes written to a program variable.