 




<?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: Settin on LR indicator not closing files</title>
	<atom:link href="http://itknowledgeexchange.techtarget.com/itanswers/settin-on-lr-indicator-not-closing-files/feed/" rel="self" type="application/rss+xml" />
	<link>http://itknowledgeexchange.techtarget.com/itanswers/settin-on-lr-indicator-not-closing-files/</link>
	<description></description>
	<lastBuildDate>Sat, 18 May 2013 07:52:31 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	
	<item>
		<title>By: splat</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/settin-on-lr-indicator-not-closing-files/#comment-65736</link>
		<dc:creator>splat</dc:creator>
		<pubDate>Sat, 18 Jul 2009 11:21:10 +0000</pubDate>
		<guid isPermaLink="false">#comment-65736</guid>
		<description><![CDATA[If you&#039;re feeling lazy, you can use &lt;b&gt;Close *all;&lt;/b&gt; prior to exit.]]></description>
		<content:encoded><![CDATA[<p>If you&#8217;re feeling lazy, you can use <b>Close *all;</b> prior to exit.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: bogeybetsy</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/settin-on-lr-indicator-not-closing-files/#comment-65690</link>
		<dc:creator>bogeybetsy</dc:creator>
		<pubDate>Fri, 17 Jul 2009 14:30:15 +0000</pubDate>
		<guid isPermaLink="false">#comment-65690</guid>
		<description><![CDATA[Thanks Wilson!]]></description>
		<content:encoded><![CDATA[<p>Thanks Wilson!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: wilsonalano</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/settin-on-lr-indicator-not-closing-files/#comment-65660</link>
		<dc:creator>wilsonalano</dc:creator>
		<pubDate>Thu, 16 Jul 2009 22:16:21 +0000</pubDate>
		<guid isPermaLink="false">#comment-65660</guid>
		<description><![CDATA[Hi Allan,

If you intend to change library list in every call, you will have this overhead. You must Open and close the file in each call.

Of course, you can ask if State change (from CA to PA for example) then close, change libl and re-open the file otherwise let it open.

If the number of files to close/open is too important, may be it&#039;s time to review the DB design and put all repeated files in one big file with keys.

Regards,
Wilson]]></description>
		<content:encoded><![CDATA[<p>Hi Allan,</p>
<p>If you intend to change library list in every call, you will have this overhead. You must Open and close the file in each call.</p>
<p>Of course, you can ask if State change (from CA to PA for example) then close, change libl and re-open the file otherwise let it open.</p>
<p>If the number of files to close/open is too important, may be it&#8217;s time to review the DB design and put all repeated files in one big file with keys.</p>
<p>Regards,<br />
Wilson</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: bogeybetsy</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/settin-on-lr-indicator-not-closing-files/#comment-65608</link>
		<dc:creator>bogeybetsy</dc:creator>
		<pubDate>Thu, 16 Jul 2009 11:26:53 +0000</pubDate>
		<guid isPermaLink="false">#comment-65608</guid>
		<description><![CDATA[One problem with this is if you use the srvpgm in a batch application and you call it repeatedly (which they do here), you Open and Close all the time.  That&#039;s a lot of overhead!]]></description>
		<content:encoded><![CDATA[<p>One problem with this is if you use the srvpgm in a batch application and you call it repeatedly (which they do here), you Open and Close all the time.  That&#8217;s a lot of overhead!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: bogeybetsy</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/settin-on-lr-indicator-not-closing-files/#comment-65607</link>
		<dc:creator>bogeybetsy</dc:creator>
		<pubDate>Thu, 16 Jul 2009 11:24:44 +0000</pubDate>
		<guid isPermaLink="false">#comment-65607</guid>
		<description><![CDATA[Oh , I get your answer.  You are saying I must use CLOSE...thanks Wilson.]]></description>
		<content:encoded><![CDATA[<p>Oh , I get your answer.  You are saying I must use CLOSE&#8230;thanks Wilson.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: bogeybetsy</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/settin-on-lr-indicator-not-closing-files/#comment-65606</link>
		<dc:creator>bogeybetsy</dc:creator>
		<pubDate>Thu, 16 Jul 2009 11:21:54 +0000</pubDate>
		<guid isPermaLink="false">#comment-65606</guid>
		<description><![CDATA[And if you CLOSE the file in the service program, does the system reclaim the memory it used for building the ODP?]]></description>
		<content:encoded><![CDATA[<p>And if you CLOSE the file in the service program, does the system reclaim the memory it used for building the ODP?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: bogeybetsy</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/settin-on-lr-indicator-not-closing-files/#comment-65605</link>
		<dc:creator>bogeybetsy</dc:creator>
		<pubDate>Thu, 16 Jul 2009 11:19:22 +0000</pubDate>
		<guid isPermaLink="false">#comment-65605</guid>
		<description><![CDATA[Hi Wilson,

Thanks for your answers.

I think the shop I work for are not intentionally terminating the service program.  They  just want to close the files so that they can change the library list with new libraries that contain the same files but having different records.  What I know is if you close the file, the ODP will destroyed.  (I just don&#039;t know if the storage used for that is reclaimed.  As stated in the IBM PDFs, the working storage is not reclaimed for service programs even if the LR indicator is set on.  With that statement, can I say that the memory used for the ODP has not been reclaimed yet? )Then when the library list is changed and the procedure in the service program is called once again, the service progam will be opening the &quot;new&quot; files.  They do this using

If  Not %Open(&lt;File&gt;)
    Open   &lt;File&gt;
EndIf

If you do not close the files, the service program will still be accessing the old files. These &quot;different&quot; library list represent different parts in the US.  So if they are proceesing records for, say CA and then they want to process records for PA next, they would change the environment, i.e., the library list.

You could actually do the same thing with activation groups, but the overhead is lower since only particular files are needed to change - majority of the files are not environment dependent and can remain open.

So, my question remains...is it natural for the files not to close even if you set LR on?  

Hope to hear from you and maybe others soon!  Thanks

Allan]]></description>
		<content:encoded><![CDATA[<p>Hi Wilson,</p>
<p>Thanks for your answers.</p>
<p>I think the shop I work for are not intentionally terminating the service program.  They  just want to close the files so that they can change the library list with new libraries that contain the same files but having different records.  What I know is if you close the file, the ODP will destroyed.  (I just don&#8217;t know if the storage used for that is reclaimed.  As stated in the IBM PDFs, the working storage is not reclaimed for service programs even if the LR indicator is set on.  With that statement, can I say that the memory used for the ODP has not been reclaimed yet? )Then when the library list is changed and the procedure in the service program is called once again, the service progam will be opening the &#8220;new&#8221; files.  They do this using</p>
<p>If  Not %Open(&lt;File&gt;)<br />
    Open   &lt;File&gt;<br />
EndIf</p>
<p>If you do not close the files, the service program will still be accessing the old files. These &#8220;different&#8221; library list represent different parts in the US.  So if they are proceesing records for, say CA and then they want to process records for PA next, they would change the environment, i.e., the library list.</p>
<p>You could actually do the same thing with activation groups, but the overhead is lower since only particular files are needed to change &#8211; majority of the files are not environment dependent and can remain open.</p>
<p>So, my question remains&#8230;is it natural for the files not to close even if you set LR on?  </p>
<p>Hope to hear from you and maybe others soon!  Thanks</p>
<p>Allan</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/10 queries in 0.034 seconds using memcached
Object Caching 351/357 objects using memcached

Served from: itknowledgeexchange.techtarget.com @ 2013-05-18 08:22:28 -->