support: Customer Portal
Focused on delivering choice, investment protection and flexibility to organizations with valuable COBOL assets
 

Veryant Knowledge Base
Home > All Categories > Data Access > COBOL/ESQL and Veryant ESQL Generator > When to set iscobol.jdbc.autocommit=false when using ESQL
Question Title When to set iscobol.jdbc.autocommit=false when using ESQL

isCOBOL ESQL is built upon JDBC, and the JDBC specification says that connections should (by default) be in 'autocommit' mode.
That means that every time a modification is made (whether it be INSERT, UPDATE or DELETE), the database is commited automatically.
That scenario is often what is required in plain Java, or COBOL applications.

However, there are some cases where it makes more sense for autocommit mode to be off, such as inside transaction processing environments or programs generated by Pro*COBOL or the DB2 preprocessor which doesn't work in autocommit mode by default.
You also may want to manage the number of commits in a large sequence of INSERT statements by limiting commits to every 1000 or so operations to improve performance.

To turn off autocommit, set this property:

   iscobol.jdbc.autocommit=false
If this variable is set to false, you are responsible for handling the transaction manually, with the COMMIT or ROLLBACK statement.
Authored by: Veryant Support This question has been viewed 7021 times so far.
Click Here to View all the questions in COBOL/ESQL and Veryant ESQL Generator category.
File Attachments File Attachments
There are no attachment file(s) related to this question.
How helpful was this article to you?
User Comments User Comments Add Comment
There are no user comments for this question. Be the first to post a comment. Click Here
Related Questions Related Questions
  1. How do I set up isCOBOL ESQL Generator for use with Microsoft SQL Server?
  2. How do I use isCOBOL ESQL with Microsoft SQL Server?
  3. How do I migrate a Vision file to an Oracle database table?
  4. Where is the Veryant ESQL generator? What files do I download?
  5. How do I connect to a MS SQL 2005 Named Instance?
  6. How does isCOBOL limit the size of database query working set for the START statement?
  7. How is READ NEXT implemented in isCOBOL ESQL Generator (EasyDB)?
  8. How do I get isCOBOL to create a database table when iscobol.file_suffix is set?
  9. How is it possible to insert a NULL into an ORACLE TABLE when host variable has been initialized?
Article Information Additional Information
Article Number: 148
Created: 2010-10-15 9:50 AM
Rating: No Rating
 
Article Options Article Options
Print Question Print this Question
Email Question Email Question to Friend
Export to Adobe PDF Export to PDF File
Export to MS Word Export to MS Word
Bookmark Article
Subscribe to Article Subscribe to Article
 
Search Knowledge Base Search Knowledge Base



 
 

© Veryant - All Rights Reserved
Veryant and isCOBOL are trademarks or registered marks of Veryant in the United States and other countries. All other marks are the property of their respective owners.