 




<?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: AS/400 Record Count</title>
	<atom:link href="http://itknowledgeexchange.techtarget.com/itanswers/as400-record-count/feed/" rel="self" type="application/rss+xml" />
	<link>http://itknowledgeexchange.techtarget.com/itanswers/as400-record-count/</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: The Most-Watched IT Questions: March 15, 2011 - ITKE Community Blog</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/as400-record-count/#comment-89412</link>
		<dc:creator>The Most-Watched IT Questions: March 15, 2011 - ITKE Community Blog</dc:creator>
		<pubDate>Tue, 15 Mar 2011 06:59:22 +0000</pubDate>
		<guid isPermaLink="false">#comment-89412</guid>
		<description><![CDATA[[...] CharlieBrowne was on other side of the forums with his question on AS/400 record counts, and TomLiotta helped him out with some sample [...]]]></description>
		<content:encoded><![CDATA[<p>[...] CharlieBrowne was on other side of the forums with his question on AS/400 record counts, and TomLiotta helped him out with some sample [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: tomliotta</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/as400-record-count/#comment-88796</link>
		<dc:creator>tomliotta</dc:creator>
		<pubDate>Tue, 01 Mar 2011 01:41:18 +0000</pubDate>
		<guid isPermaLink="false">#comment-88796</guid>
		<description><![CDATA[Maybe you do something like this:&lt;pre&gt;
pgm

   dcl   &amp;int         *int           value( 0 )
   dcl   &amp;rtnmbr      *char   10
   dcl   &amp;eom         *lgl           value( &#039;0&#039; )
   dcl   &amp;nbrrcd      *dec (  10 0 ) value( 0 )

   rtvmbrd     toml/qclsrc +
                 mbr( *FIRSTMBR *SAME ) +
                 rtnmbr( &amp;rtnmbr ) +
                 nbrcurrcd( &amp;nbrrcd )

   dowhile ( *not &amp;eom )

      sndpgmmsg msg( &#039;Counting&#039; *bcat &amp;rtnmbr )

      chgvar         &amp;int                    ( &amp;int + &amp;nbrrcd )

      rtvmbrd  mylib/qclsrc +
                 mbr( &amp;rtnmbr *NEXT ) +
                 rtnmbr( &amp;rtnmbr ) +
                 nbrcurrcd( &amp;nbrrcd )
      monmsg ( CPF3049 )  exec( chgvar  &amp;eom  &#039;1&#039; )

   enddo

   return

endpgm&lt;/pre&gt;
Does that make sense? Test the logic on something like MYLIB/QCLSRC. It seems to work, but I haven&#039;t seriously tested it.

Tom]]></description>
		<content:encoded><![CDATA[<p>Maybe you do something like this:
<pre>
pgm

   dcl   &amp;int         *int           value( 0 )
   dcl   &amp;rtnmbr      *char   10
   dcl   &amp;eom         *lgl           value( '0' )
   dcl   &amp;nbrrcd      *dec (  10 0 ) value( 0 )

   rtvmbrd     toml/qclsrc +
                 mbr( *FIRSTMBR *SAME ) +
                 rtnmbr( &amp;rtnmbr ) +
                 nbrcurrcd( &amp;nbrrcd )

   dowhile ( *not &amp;eom )

      sndpgmmsg msg( 'Counting' *bcat &amp;rtnmbr )

      chgvar         &amp;int                    ( &amp;int + &amp;nbrrcd )

      rtvmbrd  mylib/qclsrc +
                 mbr( &amp;rtnmbr *NEXT ) +
                 rtnmbr( &amp;rtnmbr ) +
                 nbrcurrcd( &amp;nbrrcd )
      monmsg ( CPF3049 )  exec( chgvar  &amp;eom  '1' )

   enddo

   return

endpgm</pre>
<p>Does that make sense? Test the logic on something like MYLIB/QCLSRC. It seems to work, but I haven&#8217;t seriously tested it.</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 282/285 objects using memcached

Served from: itknowledgeexchange.techtarget.com @ 2013-05-19 03:20:54 -->