Problem:
Release 4.0:
You may get an error when opening a Btrieve file using OPEN OUTPUT: returning file status 9/139.
Resolution:
Run-time system errors produced by a Btrieve file, i.e. 9/139, are mapped 'backwards' to this COBOL run time system. To determine the reason for this exception you should do the following:
a) Net Express Help -> Help Topics -> Index -> Btrieve -> status codes
At this point you will find references to Btrieve status code numbers related to that run time error
9/139 -> 7, 22, 27, 28, 44
b) Net Express Help -> Help Topics -> Index -> Btrieve -> errors
shows you a table including all 'Btrieve error codes' also 7, 22, 27, 28, 44.
In that case:
You should check the Btrieve environment first because record length is greater than 1024, according to the doc files:
BTRPAGE Environment Variable
The BTRPAGE environment variable specifies the page size that is used when Btrieve files are created. You can set it using the following command:
set BTRPAGE=nnn
where nnn is a byte value in the range 512 to 4096 inclusive, in multiples of 512 bytes. The value must be greater than the record size.
If you do not set BTRPAGE, or you specify a wrong value, the page size defaults to 1024 bytes.