Applies to: the native Oracle driver, as reported; the thread names no Clarion or Oracle version.
Problem
The poster needed several SQL statements inside one transaction. The native SQL statement could not start one because Clarion appeared to commit after each statement. LOGOUT(1, tableName) gave an error starting with 'unable to...'. The file was declared in a local declaration embed.
Solution
- Check the error after
OPEN. A poster asked "is your table open?"; the answer was that Clarion reported the table as not open. - Open the file with an explicit access mode, for example
open(file,42h), and read the error message. - The cause in this thread was an invalid record declaration. The poster's declaration used a PDECIMAL(12) and a CSTRING(10) with NAME() attributes on a table with the owner string written inline.
- Fix the declaration, then the LOGOUT worked on the open table. The reply that the cause was found came from the poster; he did not post the corrected declaration.
Caveats
- A statement through the file's SQL property succeeded even though the open had failed, which surprised the poster.
- CapeSoft's File Manager 3 was suggested to avoid error 47 by upgrading the back end to match the dictionary. The poster declined: he builds some structures himself and uses a variable owner per user.
- The same reply recommended the
User.TableNameform in NAME() and a variable for the owner.
Today (2026)
Likely unchanged in principle: LOGOUT needs an open file, and a failed OPEN sets the error. Not re-tested.
Sources: Robert B. (Dec 2004, the question), Marc L., Jon W., Lesley D. (Dec 2004) in softvelocity.clarion.databasedrivers.