46 Access to the requested file is denied.

You attempted to perform an Insert, Update or Delete operation on a file that was opened in read-only mode by the application.
Returned as COBOL status:
  • ansi 85 status: 48
  • ansi 74 status: 9/148

You attempted to perform an Insert, Update or Delete operation on a file that is flagged as read-only by the operating system.

Note that Xfh2btr attempts to perform an Update operation in order to detect record locks. Use the NODETECTLOCK directive if this error is returned and you are not performing a WRITE, DELETE or REWRITE operation.

The owner name required for updates was not specified correctly when the file was opened.

It is not possible to specify an owner name when using Xfh2btr to access Btrieve files.