 




<?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: PRINTER FILE</title>
	<atom:link href="http://itknowledgeexchange.techtarget.com/itanswers/printer-file-2/feed/" rel="self" type="application/rss+xml" />
	<link>http://itknowledgeexchange.techtarget.com/itanswers/printer-file-2/</link>
	<description></description>
	<lastBuildDate>Sun, 19 May 2013 03:14:28 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	
	<item>
		<title>By: tomliotta</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/printer-file-2/#comment-73312</link>
		<dc:creator>tomliotta</dc:creator>
		<pubDate>Tue, 02 Feb 2010 19:45:51 +0000</pubDate>
		<guid isPermaLink="false">#comment-73312</guid>
		<description><![CDATA[ElTerrifico is basically right about OFLIND(*In80). (And the logic nesting levels.) If you&#039;re going to be doing your own counting and setting *IN80 on and off, then you need to take care about doing it while the system is also counting lines and setting the indicator on. Either you should do it, or you should let the system do it.

Personally, I&#039;d say it&#039;s bad form to do the counting yourself. That&#039;s especially true if you use constants to set limits. It goes against the point of having externally-described files in the first place. You aren&#039;t counting lines on your display file. Why count them on your printer file? This is why printer files have an OVRFLW() attribute.

Also, I&#039;m a little confused about these lines:&lt;pre&gt;
C     @POLNO        Chain     LMCHPR                             20      
C                   If        %found&lt;/pre&gt;
...and:&lt;pre&gt;
C                       If        *In20 = *Off      
C                         Eval      Cntnopol = Cntnopol + 1      
C                       Endif&lt;/pre&gt;
If 20 is the NR indicator, then it will &lt;b&gt;always&lt;/b&gt; be off at that point. You can&#039;t get there unless the earlier %FOUND was on.

Two additional minor items:&lt;pre&gt;
C                       If        Cntnopol = 31&lt;/pre&gt;
That should probably be:&lt;pre&gt;
C                       If        Cntnopol &gt; 30&lt;/pre&gt;
I don&#039;t see it making any difference in your existing logic, but it might make a difference as you develop the program more.

And:&lt;pre&gt;
C                       write     HEAD01      
C                       write     SUBHEAD&lt;/pre&gt;
Since those always seem to be written together, why have them be separate record formats? Just make one record format that prints both of them with a single WRITE statement.

Tom]]></description>
		<content:encoded><![CDATA[<p>ElTerrifico is basically right about OFLIND(*In80). (And the logic nesting levels.) If you&#8217;re going to be doing your own counting and setting *IN80 on and off, then you need to take care about doing it while the system is also counting lines and setting the indicator on. Either you should do it, or you should let the system do it.</p>
<p>Personally, I&#8217;d say it&#8217;s bad form to do the counting yourself. That&#8217;s especially true if you use constants to set limits. It goes against the point of having externally-described files in the first place. You aren&#8217;t counting lines on your display file. Why count them on your printer file? This is why printer files have an OVRFLW() attribute.</p>
<p>Also, I&#8217;m a little confused about these lines:
<pre>
C     @POLNO        Chain     LMCHPR                             20      
C                   If        %found</pre>
<p>&#8230;and:
<pre>
C                       If        *In20 = *Off      
C                         Eval      Cntnopol = Cntnopol + 1      
C                       Endif</pre>
<p>If 20 is the NR indicator, then it will <b>always</b> be off at that point. You can&#8217;t get there unless the earlier %FOUND was on.</p>
<p>Two additional minor items:
<pre>
C                       If        Cntnopol = 31</pre>
<p>That should probably be:
<pre>
C                       If        Cntnopol &gt; 30</pre>
<p>I don&#8217;t see it making any difference in your existing logic, but it might make a difference as you develop the program more.</p>
<p>And:
<pre>
C                       write     HEAD01      
C                       write     SUBHEAD</pre>
<p>Since those always seem to be written together, why have them be separate record formats? Just make one record format that prints both of them with a single WRITE statement.</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 6/9 queries in 0.014 seconds using memcached
Object Caching 268/271 objects using memcached

Served from: itknowledgeexchange.techtarget.com @ 2013-05-19 10:18:09 -->