The WITH clause specifying NC would normally be used when a program has been defined with an isolation level other than *NONE, yet there are specific statement(s) that need to run with *NONE. The SQL options, whether from the compile or the SET, are best established according to the intent of the majority of the statements, such that WITH NC or WITH _whatever_ may still be specified, but only as the exception. There is likely little benefit to specifying WITH NC on every statement, yet have the program created with COMMIT(*CHANGE) as the default for every statement not explicitly overridden.

Regards, Chuck

Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2015 by MIDRANGE dot 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 here. If you have questions about this, please contact