 




<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: SQL command Leaving File open</title>
	<atom:link href="http://itknowledgeexchange.techtarget.com/itanswers/sql-command-leaving-file-open/feed/" rel="self" type="application/rss+xml" />
	<link>http://itknowledgeexchange.techtarget.com/itanswers/sql-command-leaving-file-open/</link>
	<description></description>
	<lastBuildDate>Sat, 25 May 2013 08:26:25 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	
	<item>
		<title>By: tomliotta</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/sql-command-leaving-file-open/#comment-101921</link>
		<dc:creator>tomliotta</dc:creator>
		<pubDate>Sun, 22 Jan 2012 06:35:31 +0000</pubDate>
		<guid isPermaLink="false">#comment-101921</guid>
		<description><![CDATA[&lt;i&gt;Needed to add CONFLICT(*RQSRLS) to the ALCOBJ command of those files so that it would “hard close” those files. Then our CL could...&lt;/i&gt;

This is a very valuable item to post back here. It will be potentially useful to many others.

Thanks for remembering to come back and adding the update.

Tom]]></description>
		<content:encoded><![CDATA[<p><i>Needed to add CONFLICT(*RQSRLS) to the ALCOBJ command of those files so that it would “hard close” those files. Then our CL could&#8230;</i></p>
<p>This is a very valuable item to post back here. It will be potentially useful to many others.</p>
<p>Thanks for remembering to come back and adding the update.</p>
<p>Tom</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: beanbaggs</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/sql-command-leaving-file-open/#comment-101896</link>
		<dc:creator>beanbaggs</dc:creator>
		<pubDate>Fri, 20 Jan 2012 14:02:55 +0000</pubDate>
		<guid isPermaLink="false">#comment-101896</guid>
		<description><![CDATA[It ended up being  “pseudo-closes” that IBM puts on files when using SQL to help with speed.  Needed to add CONFLICT(*RQSRLS) to the ALCOBJ command of those files so that it would &quot;hard close&quot; those files.  Then our CL could ALCOBJ the files.  Looks like most commands will &quot;hard close&quot; pseudo-closes&quot;, but ALCOBJ does not, and that is why the CONFLICT(*RQSRLS) was added to ALCOBJ.]]></description>
		<content:encoded><![CDATA[<p>It ended up being  “pseudo-closes” that IBM puts on files when using SQL to help with speed.  Needed to add CONFLICT(*RQSRLS) to the ALCOBJ command of those files so that it would &#8220;hard close&#8221; those files.  Then our CL could ALCOBJ the files.  Looks like most commands will &#8220;hard close&#8221; pseudo-closes&#8221;, but ALCOBJ does not, and that is why the CONFLICT(*RQSRLS) was added to ALCOBJ.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: The Most-Watched IT Questions: November 15, 2011 - ITKE Community Blog</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/sql-command-leaving-file-open/#comment-99063</link>
		<dc:creator>The Most-Watched IT Questions: November 15, 2011 - ITKE Community Blog</dc:creator>
		<pubDate>Tue, 15 Nov 2011 13:25:00 +0000</pubDate>
		<guid isPermaLink="false">#comment-99063</guid>
		<description><![CDATA[[...] BeanBaggs is running into some file closing operations on AS/400, but members help him figure out what&#8217;s going [...]]]></description>
		<content:encoded><![CDATA[<p>[...] BeanBaggs is running into some file closing operations on AS/400, but members help him figure out what&#8217;s going [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: beanbaggs</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/sql-command-leaving-file-open/#comment-98777</link>
		<dc:creator>beanbaggs</dc:creator>
		<pubDate>Tue, 08 Nov 2011 19:10:38 +0000</pubDate>
		<guid isPermaLink="false">#comment-98777</guid>
		<description><![CDATA[We are not manually opening the Table adapter, so he figured the garbage clean up should take care of the close, but apparently not.  Tried to use the .Dispose and that didn&#039;t work either, so the VB person is going to try to close the Table Adapter connection manually and see what that does.]]></description>
		<content:encoded><![CDATA[<p>We are not manually opening the Table adapter, so he figured the garbage clean up should take care of the close, but apparently not.  Tried to use the .Dispose and that didn&#8217;t work either, so the VB person is going to try to close the Table Adapter connection manually and see what that does.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: tomliotta</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/sql-command-leaving-file-open/#comment-98651</link>
		<dc:creator>tomliotta</dc:creator>
		<pubDate>Fri, 04 Nov 2011 21:59:30 +0000</pubDate>
		<guid isPermaLink="false">#comment-98651</guid>
		<description><![CDATA[&lt;i&gt;Sorry if this answer is too simplistic...&lt;/i&gt;

Not simplistic at all. The obvious answer is often the best one. It&#039;s easy to forget to ask &quot;Was the connection actually closed?&quot;

Tom]]></description>
		<content:encoded><![CDATA[<p><i>Sorry if this answer is too simplistic&#8230;</i></p>
<p>Not simplistic at all. The obvious answer is often the best one. It&#8217;s easy to forget to ask &#8220;Was the connection actually closed?&#8221;</p>
<p>Tom</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: tomliotta</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/sql-command-leaving-file-open/#comment-98650</link>
		<dc:creator>tomliotta</dc:creator>
		<pubDate>Fri, 04 Nov 2011 21:56:30 +0000</pubDate>
		<guid isPermaLink="false">#comment-98650</guid>
		<description><![CDATA[&lt;i&gt;I only see the LazyClose associated with the ODBC connection not an OLE DB one.&lt;/i&gt;

I also don&#039;t see one anywhere, which makes me wonder how/if an OLE DB client can have any control.

But the default for ODBC should be &#039;Off&#039; anyway in current releases.

Do you know if you have a QAQQINI file that controls options? The OPEN_CURSOR_CLOSE_COUNT and OPEN_CURSOR_THRESHOLD options can control pseudo-opens/closes.

Tom]]></description>
		<content:encoded><![CDATA[<p><i>I only see the LazyClose associated with the ODBC connection not an OLE DB one.</i></p>
<p>I also don&#8217;t see one anywhere, which makes me wonder how/if an OLE DB client can have any control.</p>
<p>But the default for ODBC should be &#8216;Off&#8217; anyway in current releases.</p>
<p>Do you know if you have a QAQQINI file that controls options? The OPEN_CURSOR_CLOSE_COUNT and OPEN_CURSOR_THRESHOLD options can control pseudo-opens/closes.</p>
<p>Tom</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: beanbaggs</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/sql-command-leaving-file-open/#comment-98639</link>
		<dc:creator>beanbaggs</dc:creator>
		<pubDate>Fri, 04 Nov 2011 19:23:29 +0000</pubDate>
		<guid isPermaLink="false">#comment-98639</guid>
		<description><![CDATA[Searching online I only see the LazyClose associated with the ODBC connection not an OLE DB one.  I will ask him when he gets back to look for that and what DoneThat posted.  Will post results.]]></description>
		<content:encoded><![CDATA[<p>Searching online I only see the LazyClose associated with the ODBC connection not an OLE DB one.  I will ask him when he gets back to look for that and what DoneThat posted.  Will post results.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: tomliotta</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/sql-command-leaving-file-open/#comment-98638</link>
		<dc:creator>tomliotta</dc:creator>
		<pubDate>Fri, 04 Nov 2011 19:22:25 +0000</pubDate>
		<guid isPermaLink="false">#comment-98638</guid>
		<description><![CDATA[Note that the database servers may choose not to close open files in order to avoid having to do full opens and full closes for every connection. The &quot;lazy close&quot; attribute of a connection is one way of giving permission to only do what&#039;s called &quot;pseudo-opens&quot; and &quot;pseudo-closes&quot;.

Holding files open for later transactions can make significant improvement in performance. (Also note that this is perhaps more important for sites that may have hundreds or thousands of QZDASOINIT jobs with active connections at once, handling a thousand transactions or more per second.)

Tom]]></description>
		<content:encoded><![CDATA[<p>Note that the database servers may choose not to close open files in order to avoid having to do full opens and full closes for every connection. The &#8220;lazy close&#8221; attribute of a connection is one way of giving permission to only do what&#8217;s called &#8220;pseudo-opens&#8221; and &#8220;pseudo-closes&#8221;.</p>
<p>Holding files open for later transactions can make significant improvement in performance. (Also note that this is perhaps more important for sites that may have hundreds or thousands of QZDASOINIT jobs with active connections at once, handling a thousand transactions or more per second.)</p>
<p>Tom</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: donethat</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/sql-command-leaving-file-open/#comment-98633</link>
		<dc:creator>donethat</dc:creator>
		<pubDate>Fri, 04 Nov 2011 16:35:42 +0000</pubDate>
		<guid isPermaLink="false">#comment-98633</guid>
		<description><![CDATA[Sorry if this answer is too simplistic but I close everything after each task (VBA)...

&#039;  Close the AS400 connection and clean up.

    Set cmdAS400Command = Nothing
    Set conAS400System = Nothing

If I had to open another workbook then...

&#039;  Close the Excel connection and clean up.

    Set cmExcelCommand = Nothing
    Set cnExcelWorkbook = Nothing

With 10 - 20 regular users, AS400 does not have any files left open. Also, no noticeable delay upon reopening to do the next task. 

Gary]]></description>
		<content:encoded><![CDATA[<p>Sorry if this answer is too simplistic but I close everything after each task (VBA)&#8230;</p>
<p>&#8216;  Close the AS400 connection and clean up.</p>
<p>    Set cmdAS400Command = Nothing<br />
    Set conAS400System = Nothing</p>
<p>If I had to open another workbook then&#8230;</p>
<p>&#8216;  Close the Excel connection and clean up.</p>
<p>    Set cmExcelCommand = Nothing<br />
    Set cnExcelWorkbook = Nothing</p>
<p>With 10 &#8211; 20 regular users, AS400 does not have any files left open. Also, no noticeable delay upon reopening to do the next task. </p>
<p>Gary</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: tomliotta</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/sql-command-leaving-file-open/#comment-98601</link>
		<dc:creator>tomliotta</dc:creator>
		<pubDate>Thu, 03 Nov 2011 22:28:22 +0000</pubDate>
		<guid isPermaLink="false">#comment-98601</guid>
		<description><![CDATA[I don&#039;t have an environment at the moment to look at the settings specific for IBMDA400, but have your developer look for a LazyClose option. Whichever way it is set -- Yes/No or On/Off or checked/unchecked -- try setting it the opposite way.

Post back with results.

Tom]]></description>
		<content:encoded><![CDATA[<p>I don&#8217;t have an environment at the moment to look at the settings specific for IBMDA400, but have your developer look for a LazyClose option. Whichever way it is set &#8212; Yes/No or On/Off or checked/unchecked &#8212; try setting it the opposite way.</p>
<p>Post back with results.</p>
<p>Tom</p>
]]></content:encoded>
	</item>
</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Page Caching using memcached
Database Caching 3/8 queries in 0.082 seconds using memcached
Object Caching 395/396 objects using memcached

Served from: itknowledgeexchange.techtarget.com @ 2013-05-25 10:03:21 -->