|
Hi, I have a Java program run on AS400 using native JDBC driver. I have no problems to insert, delete or update any tables in DB2 database on AS400, but when Java program inserts data from DB2 table into a flat file on AS400 library(which is not journalized), the error message says the file is not journalized, that makes sense. But I can do the same insert SQL statement from Operation Navigator's SQL Editor. I thought that may be autoCommit was not set up as true, so I specifically set the autoCommit as true in program. It still failed. In this case, I do not need the file be journalized in order to rollback. I am not quite sure why it is OK to run SQL statement directly, but failed in Java program? Any help?? Thanks, Wayne
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.