 




<?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: File Issue (Declared in OUTPUT mode)</title>
	<atom:link href="http://itknowledgeexchange.techtarget.com/itanswers/file-issue-declared-in-output-mode/feed/" rel="self" type="application/rss+xml" />
	<link>http://itknowledgeexchange.techtarget.com/itanswers/file-issue-declared-in-output-mode/</link>
	<description></description>
	<lastBuildDate>Fri, 24 May 2013 10:59:22 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	
	<item>
		<title>By: TomLiotta</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/file-issue-declared-in-output-mode/#comment-111345</link>
		<dc:creator>TomLiotta</dc:creator>
		<pubDate>Fri, 21 Sep 2012 20:32:31 +0000</pubDate>
		<guid isPermaLink="false">http://itknowledgeexchange.techtarget.com/itanswers/file-issue-declared-in-output-mode/#comment-111345</guid>
		<description><![CDATA[Ignore most of that last comment of mine in this thread. It was confused by a different thread. -- Tom]]></description>
		<content:encoded><![CDATA[<p>Ignore most of that last comment of mine in this thread. It was confused by a different thread. &#8212; Tom</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: TomLiotta</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/file-issue-declared-in-output-mode/#comment-111343</link>
		<dc:creator>TomLiotta</dc:creator>
		<pubDate>Fri, 21 Sep 2012 20:25:02 +0000</pubDate>
		<guid isPermaLink="false">http://itknowledgeexchange.techtarget.com/itanswers/file-issue-declared-in-output-mode/#comment-111343</guid>
		<description><![CDATA[As of yet, we don&#039;t know enough to say whether FRCRATIO() on the file or in an override or some different approach is better. This file might simply be one record per batch number or it might be all records for a batch with any numbers of records possible. We don&#039;t know processing requirements. We don&#039;t have a clue why multiple programs are adding AND deleting from this file nor anything else useful. The OP is not giving us information we can use to give reliably appropriate responses. -- Tom]]></description>
		<content:encoded><![CDATA[<p>As of yet, we don&#8217;t know enough to say whether FRCRATIO() on the file or in an override or some different approach is better. This file might simply be one record per batch number or it might be all records for a batch with any numbers of records possible. We don&#8217;t know processing requirements. We don&#8217;t have a clue why multiple programs are adding AND deleting from this file nor anything else useful. The OP is not giving us information we can use to give reliably appropriate responses. &#8212; Tom</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: BigKat</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/file-issue-declared-in-output-mode/#comment-111334</link>
		<dc:creator>BigKat</dc:creator>
		<pubDate>Fri, 21 Sep 2012 17:18:56 +0000</pubDate>
		<guid isPermaLink="false">http://itknowledgeexchange.techtarget.com/itanswers/file-issue-declared-in-output-mode/#comment-111334</guid>
		<description><![CDATA[if you want to use FRCRATIO(1), use it as an OVRDBF parameter in a wrapper CL program for your job.&#160; FRCRATIO(1) compiled on the file itself will SEVERELY impact the performance of CPYF&#039;s, restores, and all the other things you might need to do when staging data for testing]]></description>
		<content:encoded><![CDATA[<p>if you want to use FRCRATIO(1), use it as an OVRDBF parameter in a wrapper CL program for your job.&nbsp; FRCRATIO(1) compiled on the file itself will SEVERELY impact the performance of CPYF&#8217;s, restores, and all the other things you might need to do when staging data for testing</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: TMACDB2COE</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/file-issue-declared-in-output-mode/#comment-111302</link>
		<dc:creator>TMACDB2COE</dc:creator>
		<pubDate>Thu, 20 Sep 2012 19:03:19 +0000</pubDate>
		<guid isPermaLink="false">http://itknowledgeexchange.techtarget.com/itanswers/file-issue-declared-in-output-mode/#comment-111302</guid>
		<description><![CDATA[You do NOT need to force the change to auxiliary to have it be visible by other jobs. You do need to it get flushed out of your program buffer into the file or table to be available to be accessed by others. Setting force write ratio in the file is the wrong way to solve this problem, especially on the file since now every time the DB does a change we synchronously write that change. You should turn off blocked writes at the program level if you want the row immediately visible by others.&#160; ]]></description>
		<content:encoded><![CDATA[<p>You do NOT need to force the change to auxiliary to have it be visible by other jobs. You do need to it get flushed out of your program buffer into the file or table to be available to be accessed by others. Setting force write ratio in the file is the wrong way to solve this problem, especially on the file since now every time the DB does a change we synchronously write that change. You should turn off blocked writes at the program level if you want the row immediately visible by others.&nbsp; </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: frmdeva</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/file-issue-declared-in-output-mode/#comment-109615</link>
		<dc:creator>frmdeva</dc:creator>
		<pubDate>Fri, 27 Jul 2012 20:49:15 +0000</pubDate>
		<guid isPermaLink="false">http://itknowledgeexchange.techtarget.com/itanswers/file-issue-declared-in-output-mode/#comment-109615</guid>
		<description><![CDATA[Hi All, thanks for all your reponse. Resolved the issue by following ways.
1. Compiling the PF with FRCRATIO as 1
2. declared the file&#160; in output mode along with BLOCK(*NO)
Special Thanks to Phil and Tom
&#160;]]></description>
		<content:encoded><![CDATA[<p>Hi All, thanks for all your reponse. Resolved the issue by following ways.<br />
1. Compiling the PF with FRCRATIO as 1<br />
2. declared the file&nbsp; in output mode along with BLOCK(*NO)<br />
Special Thanks to Phil and Tom<br />
&nbsp;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: philpl1jb</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/file-issue-declared-in-output-mode/#comment-109600</link>
		<dc:creator>philpl1jb</dc:creator>
		<pubDate>Fri, 27 Jul 2012 12:03:07 +0000</pubDate>
		<guid isPermaLink="false">http://itknowledgeexchange.techtarget.com/itanswers/file-issue-declared-in-output-mode/#comment-109600</guid>
		<description><![CDATA[On a write, RPG doesn&#039;t necessarily send the update immediately to db2 unless the file demands every record, ie (unique key, key constraint, certain setting on the file, certain setting on the override) or the program forces it.&#160; 
&#160;
&#160;
The program loads an output buffer and sends multiple records to the db when the buffer is full or the program ends with *INLR on.
&#160;
So you recompiled the database..did you use all the parameter settings that it had previously?&#160; And you changed to 6.1 which might change the buffer size/logic.&#160; 
&#160;
You have four options.&#160; Change parameters on the PF to force writes.&#160; Apply an override to force writes, change the rpg code F-spec to Insert-Add, add a c-spec after the write to force the write.&#160; \
&#160;
We always try to confuse, but don&#039;t alway succeed.
Phil]]></description>
		<content:encoded><![CDATA[<p>On a write, RPG doesn&#8217;t necessarily send the update immediately to db2 unless the file demands every record, ie (unique key, key constraint, certain setting on the file, certain setting on the override) or the program forces it.&nbsp;<br />
&nbsp;<br />
&nbsp;<br />
The program loads an output buffer and sends multiple records to the db when the buffer is full or the program ends with *INLR on.<br />
&nbsp;<br />
So you recompiled the database..did you use all the parameter settings that it had previously?&nbsp; And you changed to 6.1 which might change the buffer size/logic.&nbsp;<br />
&nbsp;<br />
You have four options.&nbsp; Change parameters on the PF to force writes.&nbsp; Apply an override to force writes, change the rpg code F-spec to Insert-Add, add a c-spec after the write to force the write.&nbsp; \<br />
&nbsp;<br />
We always try to confuse, but don&#8217;t alway succeed.<br />
Phil</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: TomLiotta</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/file-issue-declared-in-output-mode/#comment-109579</link>
		<dc:creator>TomLiotta</dc:creator>
		<pubDate>Thu, 26 Jul 2012 22:00:42 +0000</pubDate>
		<guid isPermaLink="false">http://itknowledgeexchange.techtarget.com/itanswers/file-issue-declared-in-output-mode/#comment-109579</guid>
		<description><![CDATA[Is the file journaled? Is any session that is using the file running under commitment control? What options are specified on the SQL statement?
&#160;
Tom]]></description>
		<content:encoded><![CDATA[<p>Is the file journaled? Is any session that is using the file running under commitment control? What options are specified on the SQL statement?<br />
&nbsp;<br />
Tom</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: frmdeva</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/file-issue-declared-in-output-mode/#comment-109577</link>
		<dc:creator>frmdeva</dc:creator>
		<pubDate>Thu, 26 Jul 2012 21:50:53 +0000</pubDate>
		<guid isPermaLink="false">http://itknowledgeexchange.techtarget.com/itanswers/file-issue-declared-in-output-mode/#comment-109577</guid>
		<description><![CDATA[I am providing more info here,
Currently we are having V6R1M0 version. So I took the file which was compiled with V5R4M0 version and declared in the same program with output mode. When I checked the data during the program runs, I can able to fetch the data and also able to SQL it. 
Then I took the same DDS and compiled with recent version V6R1M0 and compiled the same RPGLE program, I couldn&#039;t see the record after it is written into&#160;the file when program runs. I can able to &#160;see the written records only after ending the program. Please help me on this very strange scenario.]]></description>
		<content:encoded><![CDATA[<p>I am providing more info here,<br />
Currently we are having V6R1M0 version. So I took the file which was compiled with V5R4M0 version and declared in the same program with output mode. When I checked the data during the program runs, I can able to fetch the data and also able to SQL it.<br />
Then I took the same DDS and compiled with recent version V6R1M0 and compiled the same RPGLE program, I couldn&#8217;t see the record after it is written into&nbsp;the file when program runs. I can able to &nbsp;see the written records only after ending the program. Please help me on this very strange scenario.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: frmdeva</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/file-issue-declared-in-output-mode/#comment-109573</link>
		<dc:creator>frmdeva</dc:creator>
		<pubDate>Thu, 26 Jul 2012 19:26:28 +0000</pubDate>
		<guid isPermaLink="false">http://itknowledgeexchange.techtarget.com/itanswers/file-issue-declared-in-output-mode/#comment-109573</guid>
		<description><![CDATA[The file FIL1 is a PF and there is no Key on it.
Durng debug mode, I have checked the file WRITE operation completed with out any error and in another session, I tried to SQL it but the query doesn&#039;t display record. If I come out of the program (mean to say *INLR = *ON), then I can able to see the record which was written earlier. So records are written in the file when program runs but able to see the reocrd only end of the program. In my case, I declared the file in OUTPUT in the program which ends when they do IPL.&#160;&#160;If I change the declarartion from OUTPUT to Input with Record addition, then I can able to see the records when the program runs too. Is it the behaviour of output mode or something I am doing wrong in compilation?
Thanks for all your response!!!]]></description>
		<content:encoded><![CDATA[<p>The file FIL1 is a PF and there is no Key on it.<br />
Durng debug mode, I have checked the file WRITE operation completed with out any error and in another session, I tried to SQL it but the query doesn&#8217;t display record. If I come out of the program (mean to say *INLR = *ON), then I can able to see the record which was written earlier. So records are written in the file when program runs but able to see the reocrd only end of the program. In my case, I declared the file in OUTPUT in the program which ends when they do IPL.&nbsp;&nbsp;If I change the declarartion from OUTPUT to Input with Record addition, then I can able to see the records when the program runs too. Is it the behaviour of output mode or something I am doing wrong in compilation?<br />
Thanks for all your response!!!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: NickHutcheson1</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/file-issue-declared-in-output-mode/#comment-109570</link>
		<dc:creator>NickHutcheson1</dc:creator>
		<pubDate>Thu, 26 Jul 2012 16:30:10 +0000</pubDate>
		<guid isPermaLink="false">http://itknowledgeexchange.techtarget.com/itanswers/file-issue-declared-in-output-mode/#comment-109570</guid>
		<description><![CDATA[Trigger on Fil1 - when records are written to the file, pgm B does whatever.More information may help us help you.]]></description>
		<content:encoded><![CDATA[<p>Trigger on Fil1 &#8211; when records are written to the file, pgm B does whatever.More information may help us help you.</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 6/9 queries in 0.014 seconds using memcached
Object Caching 394/397 objects using memcached

Served from: itknowledgeexchange.techtarget.com @ 2013-05-24 11:31:03 -->