Top
NetCOBOL V11.0 COBOL File Access RoutinesUser's Guide
FUJITSU Software

3.13 cobfa_recnum()

Returns the relative record number of the current record.

unsigned  long  cobfa_recnum  (
  void            /* no arguments */
);

Description

When handling relative files, returns the record number of the current record. Unpredictable values are returned if the read function failed or there have been intervening function calls.

This function is valid after calls to:

Execution Conditions

Always accessible.

Return Values

Relative record number of the record currently positioned in a relative file.