× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



On 03-Feb-2014 13:21 -0800, DeLong, Eric wrote:
<<SNIP>> Now, as to why your data is not written to disk as you
want, you should explore the SQL options for closing the SQL cursor.
You might need to use CLOSQLCSR(*ENDMOD)

<snip>
CLOSQLCSR
Specifies when SQL cursors are implicitly closed, <<SNIP>>

The Close SQL Cursors option should have nothing to do with the visibility of the data to another [program of an] application. The effect of that OPTION is all about performance and locks, not data. The isolation [commitment control] level would have an effect on the visibility of the data, but that effect is separate from the cursors being closed; i.e. data pending a ROLLBACK or a COMMIT is what affects the visibility of that data elsewhere, and just like a file opened outside of the SQL can be closed in a program while those data\record changes are still pending under isolation, so too an SQL cursor can be closed while those data\row changes are still pending.

Just like leaving a non-SQL ODP per RETURN without *INLR=*ON can be beneficial for performance, leaving the SQL ODP active [as pseudo-closed cursor] can also have performance benefits. Thus attempts to ensure the cursor is closed more often, increases the cost of the SQL for its open activity; also a potential cost for other statement\query activation work, beyond just the creation of the ODP. A similarly negative impact for the RLA, would occur when using the Close File (CLOF) to close an Open Query File (OPNQRYF) ODP and then re-invoking the same OPNQRYF request... instead of just using Position Database File (POSDBF) [or similarly, by another means] and re-reading the data from the existing ODP; that is way over-simplified, but somewhat reflective, for a stupidly-simple scenario.


As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

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.