7.31 SET_TARGET_RECORD2
Use SET_TARGET_RECORD2
to set the values of a modified record. This step is not required for the buffers under 32 K, but is required for larger records defined with DDL2.
Syntax
For C:
#include "usrdecs" char *buf; long record_len; short io_type; short result; result = SET_TARGET_RECORD2 (buf, &record_len, &io_type);
For TAL:
?source usrdect string .ext buf; int(32) len; int io_type; int result; result := SET_TARGET_RECORD2 (buf, len, io_type);
For COBOL:
?CONSULT =EXTRACT (or =REPLICAT) 01 buf PIC X(128000). 01 len PIC S9(8) COMP. 01 io-type PIC S9(4) COMP. 01 result PIC S9(4) COMP. ENTER C "SET_TARGET_RECORD2" using buf, len, io-type giving result.
-
buf
-
The record buffer for data returned by the Extract or Replicat programs. The memory for this buffer must be allocated by the user. Up to
X(127000)
can be used in the buffer as long as it is declared in extended storage. -
len
-
LEN
is the length of the data returned inBUF
. -
io_type
io-type
-
Indicates the type of operation represented by the record, such as:
3
— Delete5
— Insert10
— Update11
— Compressed Enscribe Update15
— Compressed SQL Update115
— Compressed primary key Update -
result
-
A code indicating whether the call was successful or not.