My experience has been with RPG and native IO - not SQL
STRCMTCTL LCKLVL(*ALL) CMTSCOPE(*JOB)
1. STRCMTCTL must be issued before files are open
2. Files under native I/O should have a COMMIT on the F spec
3. Files must be journalled to a single journal ??
3. Code should contain one or more COMMIT or ROLLBACK
4. Process should end with ENDCMTCTL
Level check is critical to determine which records are locked -- *ALL would be every record that is read by the program.
Last Wiki Answer Submitted: November 18, 2008 2:27 pm by philpl1jb44,630 pts.
All Answer Wiki Contributors: philpl1jb44,630 pts.
If you live outside the United States, by submitting your email address you consent to having your personal data transferred to and processed in the United States.
If this question is being asked because using SQL is not updating data, and your files are not under commitment control, starting commitment control will not necessarily solve the problem.
Instead, add ‘with nc’ to the end of your SQL statement. This will make SQL process the files without requiring commitment control to be active.
If this question is being asked because using SQL is not updating data, and your files are not under commitment control, starting commitment control will not necessarily solve the problem.
Instead, add ‘with nc’ to the end of your SQL statement. This will make SQL process the files without requiring commitment control to be active.
Regards,
Sloopy
Why do we use the STRCMTCTL command ,I am confused with this command..
Ankit2002
Please start a new qestion, that way more perts will see it and respond.
Please also tell – if you know what commitment control is.
Phil
Phil is correct, but anyway you can learn more from this link
YuVa
which is disappeared but her is now
http://publib.boulder.ibm.com/iseries/v5r2/ic2924/index.htm?info/cl/strcmtct.htm