 




<?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: unlock multimember file</title>
	<atom:link href="http://itknowledgeexchange.techtarget.com/itanswers/unlock-multimember-file/feed/" rel="self" type="application/rss+xml" />
	<link>http://itknowledgeexchange.techtarget.com/itanswers/unlock-multimember-file/</link>
	<description></description>
	<lastBuildDate>Sun, 19 May 2013 00:10:42 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	
	<item>
		<title>By: vgp</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/unlock-multimember-file/#comment-77583</link>
		<dc:creator>vgp</dc:creator>
		<pubDate>Thu, 27 May 2010 20:55:58 +0000</pubDate>
		<guid isPermaLink="false">#comment-77583</guid>
		<description><![CDATA[Tom, 

Thanks for the info.  The place where this program is called is inside what used to be a package in the early 90&#039;s.  We have heavily modified the code and it is all ours now.   The package uses *LDA, sets its own libl, tons of multimember files, and a lot of other stuff I have to deal with.

I will add the code suggestion.   Also thanks for giving me the details on where it should go too.  I really appreciate the help.

Gail]]></description>
		<content:encoded><![CDATA[<p>Tom, </p>
<p>Thanks for the info.  The place where this program is called is inside what used to be a package in the early 90&#8242;s.  We have heavily modified the code and it is all ours now.   The package uses *LDA, sets its own libl, tons of multimember files, and a lot of other stuff I have to deal with.</p>
<p>I will add the code suggestion.   Also thanks for giving me the details on where it should go too.  I really appreciate the help.</p>
<p>Gail</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: vgp</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/unlock-multimember-file/#comment-77565</link>
		<dc:creator>vgp</dc:creator>
		<pubDate>Thu, 27 May 2010 13:45:23 +0000</pubDate>
		<guid isPermaLink="false">#comment-77565</guid>
		<description><![CDATA[This is just a quick maintenance type program and will be used 1-2 times a month when a certain error occurs from the interfacing system.

We have Aldon so the compile option is stored automatically for future recompiles.  But you are correct, I should document the special compile in the program source as well.

I am not familiar with the set option statement.  Where does it go and what is the syntax?

Thanks for your help.  Gail]]></description>
		<content:encoded><![CDATA[<p>This is just a quick maintenance type program and will be used 1-2 times a month when a certain error occurs from the interfacing system.</p>
<p>We have Aldon so the compile option is stored automatically for future recompiles.  But you are correct, I should document the special compile in the program source as well.</p>
<p>I am not familiar with the set option statement.  Where does it go and what is the syntax?</p>
<p>Thanks for your help.  Gail</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: tomliotta</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/unlock-multimember-file/#comment-77551</link>
		<dc:creator>tomliotta</dc:creator>
		<pubDate>Thu, 27 May 2010 00:11:11 +0000</pubDate>
		<guid isPermaLink="false">#comment-77551</guid>
		<description><![CDATA[Gail:

&lt;i&gt;That fixed it.
I set the CLOSQLCSR to *ENDMOD...&lt;/i&gt;

I don&#039;t know if that&#039;s the &quot;correct&quot; fix. It may depend on how the module will be used in the future. The idea is that future performance/efficiency can be influenced by how the module is used in different activation group settings.

For now, your best course is probably to put a SET OPTION statement in the source itself to set -- and document! -- the setting that is being used. That way, as you possibly develop the module further, you won&#039;t need to remember how to compile it. And a future developer will be able to see the explicit setting.

Tom]]></description>
		<content:encoded><![CDATA[<p>Gail:</p>
<p><i>That fixed it.<br />
I set the CLOSQLCSR to *ENDMOD&#8230;</i></p>
<p>I don&#8217;t know if that&#8217;s the &#8220;correct&#8221; fix. It may depend on how the module will be used in the future. The idea is that future performance/efficiency can be influenced by how the module is used in different activation group settings.</p>
<p>For now, your best course is probably to put a SET OPTION statement in the source itself to set &#8212; and document! &#8212; the setting that is being used. That way, as you possibly develop the module further, you won&#8217;t need to remember how to compile it. And a future developer will be able to see the explicit setting.</p>
<p>Tom</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: vgp</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/unlock-multimember-file/#comment-77531</link>
		<dc:creator>vgp</dc:creator>
		<pubDate>Wed, 26 May 2010 14:18:00 +0000</pubDate>
		<guid isPermaLink="false">#comment-77531</guid>
		<description><![CDATA[Tom, you are great!   That fixed it.  
I set the CLOSQLCSR to *ENDMOD when recompiling and tried all the SQL options.   I had up to 10 locks but all were gone when I exited the program.

Thanks!!!!    Gail]]></description>
		<content:encoded><![CDATA[<p>Tom, you are great!   That fixed it.<br />
I set the CLOSQLCSR to *ENDMOD when recompiling and tried all the SQL options.   I had up to 10 locks but all were gone when I exited the program.</p>
<p>Thanks!!!!    Gail</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: vgp</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/unlock-multimember-file/#comment-77530</link>
		<dc:creator>vgp</dc:creator>
		<pubDate>Wed, 26 May 2010 13:26:34 +0000</pubDate>
		<guid isPermaLink="false">#comment-77530</guid>
		<description><![CDATA[The default on the compile for CLOSQLCSR is *ENDACTGRP.

I should have said I used RPG Free.   The 1st SQL statement is below.  The second is similiar:

Exec SQL                                   
select count(*) into :blnkcnt from artran  
where shipto = :blkacct and act = &#039;1100&#039;;  

I did not execute in my example but if the user chooses to print or view the records the programs does this SQL. fledata is a work file to hold the records.

Eval where = ‘select * from artran where shipto = custno for fetch only’;    

Exec Sql                          
prepare pick from :where;         
Exec Sql                          
declare A1 cursor for pick;       
Exec Sql                          
open A1;                          
Exec Sql                          
fetch next from A1 into :fledata;   


Also not exceuted in my example if the user chooses to update the file this is used
Exec SQL                                                  
update artran set shipto = :newship, billto = :newbill    
where shipto = :custno;]]></description>
		<content:encoded><![CDATA[<p>The default on the compile for CLOSQLCSR is *ENDACTGRP.</p>
<p>I should have said I used RPG Free.   The 1st SQL statement is below.  The second is similiar:</p>
<p>Exec SQL<br />
select count(*) into :blnkcnt from artran<br />
where shipto = :blkacct and act = &#8217;1100&#8242;;  </p>
<p>I did not execute in my example but if the user chooses to print or view the records the programs does this SQL. fledata is a work file to hold the records.</p>
<p>Eval where = ‘select * from artran where shipto = custno for fetch only’;    </p>
<p>Exec Sql<br />
prepare pick from :where;<br />
Exec Sql<br />
declare A1 cursor for pick;<br />
Exec Sql<br />
open A1;<br />
Exec Sql<br />
fetch next from A1 into :fledata;   </p>
<p>Also not exceuted in my example if the user chooses to update the file this is used<br />
Exec SQL<br />
update artran set shipto = :newship, billto = :newbill<br />
where shipto = :custno;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: tomliotta</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/unlock-multimember-file/#comment-77513</link>
		<dc:creator>tomliotta</dc:creator>
		<pubDate>Tue, 25 May 2010 23:49:54 +0000</pubDate>
		<guid isPermaLink="false">#comment-77513</guid>
		<description><![CDATA[When you compiled the module, what did you specify for the CLOSQLCSR() attribute? Alternatively, what did you set for the CLOSQLCSR option in the SET OPTION statement in your source code?

Tom]]></description>
		<content:encoded><![CDATA[<p>When you compiled the module, what did you specify for the CLOSQLCSR() attribute? Alternatively, what did you set for the CLOSQLCSR option in the SET OPTION statement in your source code?</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/10 queries in 0.036 seconds using memcached
Object Caching 337/343 objects using memcached

Served from: itknowledgeexchange.techtarget.com @ 2013-05-19 00:38:35 -->