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

This thread ...


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