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

3.26.2 Dummy File Operation

The operation of the dummy file for each function is as follows:

Function

Return Value

Condition

Error Number

I-O status

cobfa_open()

1 or greater

Successful

FA_ENOERR

0

cobfa_openW()

cobfa_close()

0

Successful

FA_ENOERR

0

cobfa_release()

cobfa_stkey()

cobfa_strec()

cobfa_wrkey()

cobfa_wrnext()

cobfa_wrrec()

cobfa_rdnext()

-1

Failed

FA_EENDFILE

10

cobfa_rdkey()

-1

Failed

FA_ENOREC

23

cobfa_rdrec()

cobfa_delcurr()

-1

Failed

FA_ENOCURR

43

cobfa_rewcurr()

cobfa_delkey()

-1

Failed

FA_ENOREC

23

cobfa_delrec()

cobfa_rewkey()

cobfa_rewrec()

Note

In file access routines, the specification of the record key can be omitted by opening the index file. In this case, it opens recognizing the index composition, the record format, and the record length of the existing file.

When the dummy file function is specified, the specification of the record key can be similarly omitted. However, the cobfa_indexinfo() to acquire the file information fails. The error number goes to FA_EUNDEFKEY, and the I/O status becomes 90.