error opening ISAM file
Posted in 2007
Topics: Error Codes & Troubleshooting
Hi, I am trying to open an ISAM file with isopen call. But I am getting error with iserror set to 111. I tried to check 111 error code ... 111 ENOREC Action: No record could be found that contained the requested value in the specified position. I think this error should error if we are trying to find a record and record is not there. But how can this error be possible while opening a file (ISAM)??? Thanks
amit.atray@gmail.com wrote: > Hi, > > I am trying to open an ISAM file with isopen call. > But I am getting error with iserror set to 111. > > > I tried to check 111 error code ... > > > 111 ENOREC > Action: No record could be found that contained the requested value > in the specified position. > > > I think this error should error if we are trying to find a record and > record is not there. > But how can this error be possible while opening a file (ISAM)??? > > > Thanks > isopen returns an integer - either '-1' for error or '=> 0' as a file handler. You've got the positive value 111. That's not an error, that's a file handle.