#include <lcio.h> int kdelete(const void *key, FILE *f);
kdelete
function deletes the current record from the keyed stream
associated with the FILE
object addressed by f
. The key
argument addresses the value of the key
field for the record to be deleted. If
the key of the current record does not match, the record is not deleted
and an
error is returned. If the key
pointer is NULL
, the current record
is deleted, and the key is not checked for validity. After deletion of a record,
the file is considered to be positioned to the next record in sequence.
kdelete
function returns 0 if no error occurs, or a negative value
in case of an error.
kdelete
, see VSAM I/O Example .
kinsert
, kretrv
Copyright (c) 1998 SAS Institute Inc. Cary, NC, USA. All rights reserved.