#include <lcio.h> int kreplace(const void *rec, size_t length, FILE *f);
kreplace
function replaces the current record of the keyed stream
associated with the FILE
object addressed by f
with the data
addressed by the rec
argument. The argument length
specifies the
length of the replacement record. The new record must not change the key.
Additionally, in an ESDS or RRDS, the record length must not be changed.
Replacement of a record does not change the file position. However, the updated record is no longer current and must be retrieved again before another update.
kreplace
function returns 0 if no error occurs, or a negative value if
an error occurs.
kreplace
, see VSAM I/O Example .
kdelete
, kinsert
, kretrv
Copyright (c) 1998 SAS Institute Inc. Cary, NC, USA. All rights reserved.