ODBC Driver Error Messages

An error reported on the BASIS ODBC Driver has the following format:

[BASIS] [BASIS ODBC Driver] error message

Some ODBC error messages include a value for the fserr and fserrs parameters in the error text.

  • The fserr value minus 1 is equivalent to the same PRO/5 error number. For example, fserr=13 would indicate a PRO/5 !ERROR12 (Missing or Duplicate File).

  • A positive fserrs value indicates that no host error occurred.

  • A negative fserrs value indicates an underlying host error occurred. Use the absolute value of the fserrs value to determine the system error from the operating system. For example, fserrs= -92 would indicate a host error 92.

Following is a list of PRO/5 error numbers and their descriptions that may be returned by fserr:

Error

Description

!ERROR=0

File/Record/Device Busy or Inaccessible

!ERROR=1

End of Record

!ERROR=2

End of File

!ERROR=3

Disk Read/Write Error

!ERROR=4

Disk Not Ready

!ERROR=5

Peripheral Data Transfer Error

!ERROR=6

Invalid Disk Directory

!ERROR=7

Pointer Out of Range

!ERROR=8

Disk Write Error/Data Miscompare

!ERROR=10

Illegal File Name

!ERROR=11

Missing or Duplicate Key

!ERROR=12

Missing or Duplicate File

!ERROR=13

Improper File/Device Address

!ERROR=14

Improper File/Device Usage

!ERROR=15

Disk Full

!ERROR=16

Directory or Table Overflow

!ERROR=17

Invalid Parameter

!ERROR=18

Illegal Control Operation/Permissions Error

!ERROR=26

String/Number Mismatch

!ERROR=31

Workspace Memory Overflow

!ERROR=32

Hardware Stack Overflow

!ERROR=33

System Memory Overflow

!ERROR=34

Buffer Overflow

!ERROR=40

Numeric Overflow

!ERROR=41

Invalid Integer

!ERROR=42

Nonexistent Numeric Subscript

!ERROR=43

Format Mask Overflow

!ERROR=46

Invalid String Size

!ERROR=47

Substring Out of Range

!ERROR=54

Open of File With Invalid Header

!ERROR=60

General I/O Error

!ERROR=69

User limits have been exceeded

!ERROR=70

Network User Error

!ERROR=71

Network Error

!ERROR=72

Network Gone

!ERROR=103

Disk Read/Write Error occurred during a critical operation

!ERROR=104

Disk Not Ready Error occurred during a critical operation

!ERROR=107

Disk Pointer Out of Range occurred during a critical operation