error 11 on write with no DOM - embedded IO

Started by Michael Greer, March 18, 2026, 01:07:20 PM

Previous topic - Next topic

Michael Greer

In an embedded IO routine (post_write) I am getting an error 11 on a write to a file with no DOM specified.  If  I write it in console mode and I have no issue. This is an mkeyed file like this:  keyed "test",[1:1:2]+[2:1:10]+[3:1:6],0,-300.  Is some strange IO option in play during embedded IO?  I'm not seeing any such setting in the io program itself.

James Zukowski

If you ESCAPE before the WRITE, you can step through it. The embedded IO routing will be steppable and you can find the offending situation that way.
James Zukowski
Sr. Developer - J&E

BRAND>SAFWAY
Brand Industrial Services

Michael Greer

James, I did that. I am taking an error branch (seterr in effect) due to an error 11.  As I say, it is a write with no DOM or ERR on an mkeyed file.

Jerry Fletcher

Hi Michael,

This might be a long shot but whenever i get an odd error 11's (like they should not be happening) then it seems like my file gets corrupted.
    for example writing without a dom and getting an error 11
    or getting they key(file) then trying to read with same key and getting an error 11.
if i do a keyed load on file it usually fixes it.

Jerry

Michael Greer

This is a new file, so I actually just erased it and re-created it.  I can program around this by trying a remove first, but I don't think I should have to do that.

James Zukowski

When stepping through, have you tried disabling the seterr in the process?
Do you have any system parameters set that might have some effect on this ('WL', 'WD', 'VW', etc.)?
James Zukowski
Sr. Developer - J&E

BRAND>SAFWAY
Brand Industrial Services

Mike King

Is it possible you have multiple key fields and that the DOM error is reporting that an error due to a non-unique alternate key?
Mike King
President - BBSysco Consulting - http://www.bbsysco.com
eMail: mike.king@bbsysco.com