Title: What is 9l,10 error and why is it happening?

Someone asked the question above and the Veryant support engineer answered as follows:

The problem is in the lines:

100008     RECORD KEY IS FILE1-KEY
100009     ALTERNATE RECORD KEY IS FILE1-KEY,

You have defined the alternate key to be the same as the primary key. If you comment out the ALTERNATE line then you will no longer get the error.

The way I diagnosed this was to run the program with the following properties:

iscobol.logfile=log.txt
iscobol.tracelevel=63

I then noticed in the log.txt file the following:

Oct 28, 2010 21.41.49.669 INFO: Unknown error FILE1 (FILE1.DAT) FS=[9l],EXFS=[108]: unknown error

So the 91,10 is actually a 91,108

I then checked our KB for how to diagnose 9? errors and in the article How do I interpret file status 9? and other EXFS extended file status codes (e.g. 9i,105)? I found the following:

static final int E_IO_KEXISTS = 108; /* key already exists */

which told me that the OPEN was trying to add a key that was already added. I then looked at the SELECT and found the problem.

Authored by: Veryant Support on Thu, Oct 28th, 2010 at 7:00 PM
This question has been viewed 5442 times so far.
Online URL: http://support.veryant.com/support/phpkb/question.php?ID=153

Powered by PHPKB Knowledge Base Software