ktell -- Return RBA of Current Record

SYNOPSIS

 #include <lcio.h>

 unsigned long ktell(FILE *f);
 

DESCRIPTION

The ktell function returns the RBA of the current record of the stream associated with the FILE object addressed by f. If there is no current record when ktell is called, an error indication is returned.

For an ESDS, a record's RBA is stored in its key field, so in general, using ktell is not necessary with an ESDS.

RETURN VALUES

The ktell function returns the RBA of the current record if it is successful, or -1UL if an error occurs.

RELATED FUNCTIONS

kgetpos, kseek

SEE ALSO


Copyright (c) 1998 SAS Institute Inc. Cary, NC, USA. All rights reserved.