 




<?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: exceeding 9999 records in load all subfile?</title>
	<atom:link href="http://itknowledgeexchange.techtarget.com/itanswers/exceeding-9999-records-in-load-all-subfile/feed/" rel="self" type="application/rss+xml" />
	<link>http://itknowledgeexchange.techtarget.com/itanswers/exceeding-9999-records-in-load-all-subfile/</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: vatchy</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/exceeding-9999-records-in-load-all-subfile/#comment-72679</link>
		<dc:creator>vatchy</dc:creator>
		<pubDate>Fri, 15 Jan 2010 02:00:20 +0000</pubDate>
		<guid isPermaLink="false">#comment-72679</guid>
		<description><![CDATA[The important point in my post was the &quot;position-to&quot; information.  That is useful to allow the user to avoid having to scroll through 9999 records.  Just use the position-to info to SETLL and start the subfile from there.]]></description>
		<content:encoded><![CDATA[<p>The important point in my post was the &#8220;position-to&#8221; information.  That is useful to allow the user to avoid having to scroll through 9999 records.  Just use the position-to info to SETLL and start the subfile from there.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: tomliotta</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/exceeding-9999-records-in-load-all-subfile/#comment-72557</link>
		<dc:creator>tomliotta</dc:creator>
		<pubDate>Wed, 13 Jan 2010 04:22:52 +0000</pubDate>
		<guid isPermaLink="false">#comment-72557</guid>
		<description><![CDATA[Minor correction -- it would be a SFLSIZ = SFLPAG subfile, a page-at-a-time subfile where the size is defined equal to a single page.

For the question, the number of records in a PF is not related to the number of records in a subfile. A subfile will only hold what you successfully write to it. You can try to write more than 9999 rows to a subfile, but the next write won&#039;t succeed. I think it will result in a simple error with status 00013. (It&#039;s probably been 20 years since I&#039;ve seen any attempt to write that many rows. There is no point to having 500+ pages to scroll through in a subfile.)

Tom]]></description>
		<content:encoded><![CDATA[<p>Minor correction &#8212; it would be a SFLSIZ = SFLPAG subfile, a page-at-a-time subfile where the size is defined equal to a single page.</p>
<p>For the question, the number of records in a PF is not related to the number of records in a subfile. A subfile will only hold what you successfully write to it. You can try to write more than 9999 rows to a subfile, but the next write won&#8217;t succeed. I think it will result in a simple error with status 00013. (It&#8217;s probably been 20 years since I&#8217;ve seen any attempt to write that many rows. There is no point to having 500+ pages to scroll through in a subfile.)</p>
<p>Tom</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: vatchy</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/exceeding-9999-records-in-load-all-subfile/#comment-72529</link>
		<dc:creator>vatchy</dc:creator>
		<pubDate>Tue, 12 Jan 2010 17:42:40 +0000</pubDate>
		<guid isPermaLink="false">#comment-72529</guid>
		<description><![CDATA[If you expect that a user will need to scroll through more than 9999 records then you need to use a SFLSIZ = SFLPAG+1 subfile and include a position-to field in the display file so that the user can do instant positioning rather than having to scroll that many pages.  Also, loading 9999 records before showing the subfile to the user will cause a significant delay.]]></description>
		<content:encoded><![CDATA[<p>If you expect that a user will need to scroll through more than 9999 records then you need to use a SFLSIZ = SFLPAG+1 subfile and include a position-to field in the display file so that the user can do instant positioning rather than having to scroll that many pages.  Also, loading 9999 records before showing the subfile to the user will cause a significant delay.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: littlepd</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/exceeding-9999-records-in-load-all-subfile/#comment-72527</link>
		<dc:creator>littlepd</dc:creator>
		<pubDate>Tue, 12 Jan 2010 17:13:18 +0000</pubDate>
		<guid isPermaLink="false">#comment-72527</guid>
		<description><![CDATA[Assuming you&#039;ve coded your program to catch the error you are going to receive when you try to write record # 10,000 to your subfile then continue on to display the subfile, you will get a warning message on the screen when you reach the end of the subfile. You will not be able to scroll past that last page.

As for how to handle the page keys in this case, you can&#039;t. Load-all subfile don&#039;t let you handle page keys, they handle them for you. Control is never returned to your program for you to even know that a page key was pressed.

If you want to have a subfile that displays that many records from your file, it cannot be a load-all subfile. You must make it a page-at-a-time subfile. That means handling &lt;i&gt;all&lt;/i&gt; of the page keys that are pressed, not just the last one, and you must load each page every time a page key is pressed.]]></description>
		<content:encoded><![CDATA[<p>Assuming you&#8217;ve coded your program to catch the error you are going to receive when you try to write record # 10,000 to your subfile then continue on to display the subfile, you will get a warning message on the screen when you reach the end of the subfile. You will not be able to scroll past that last page.</p>
<p>As for how to handle the page keys in this case, you can&#8217;t. Load-all subfile don&#8217;t let you handle page keys, they handle them for you. Control is never returned to your program for you to even know that a page key was pressed.</p>
<p>If you want to have a subfile that displays that many records from your file, it cannot be a load-all subfile. You must make it a page-at-a-time subfile. That means handling <i>all</i> of the page keys that are pressed, not just the last one, and you must load each page every time a page key is pressed.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: teandy</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/exceeding-9999-records-in-load-all-subfile/#comment-72526</link>
		<dc:creator>teandy</dc:creator>
		<pubDate>Tue, 12 Jan 2010 16:55:00 +0000</pubDate>
		<guid isPermaLink="false">#comment-72526</guid>
		<description><![CDATA[I believe that the program will abend when loading the subfile and I know for certain that the program will abend if you try to page down past the 9999th record.  

If I were doing this, I would use either a page at a time subfile or a load all that holds between 1500 to 2500 records.  Both would have a search field to set where the subfile starts to read the PF.]]></description>
		<content:encoded><![CDATA[<p>I believe that the program will abend when loading the subfile and I know for certain that the program will abend if you try to page down past the 9999th record.  </p>
<p>If I were doing this, I would use either a page at a time subfile or a load all that holds between 1500 to 2500 records.  Both would have a search field to set where the subfile starts to read the PF.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: dlm2007</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/exceeding-9999-records-in-load-all-subfile/#comment-72518</link>
		<dc:creator>dlm2007</dc:creator>
		<pubDate>Tue, 12 Jan 2010 14:33:46 +0000</pubDate>
		<guid isPermaLink="false">#comment-72518</guid>
		<description><![CDATA[Recompile the the physical file&#039;s initial records to *NOMAX. The default is 10,000]]></description>
		<content:encoded><![CDATA[<p>Recompile the the physical file&#8217;s initial records to *NOMAX. The default is 10,000</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: reshmag</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/exceeding-9999-records-in-load-all-subfile/#comment-72511</link>
		<dc:creator>reshmag</dc:creator>
		<pubDate>Tue, 12 Jan 2010 11:22:30 +0000</pubDate>
		<guid isPermaLink="false">#comment-72511</guid>
		<description><![CDATA[No matter how many records are there in a PF but  for load all u can load only 9999 max..
i.e.
in the Subfile u need to mention SFLSIZ  = &quot; Number of records u want to load &quot;

it will load at a time 9999 only u can&#039;tgive more than 9999]]></description>
		<content:encoded><![CDATA[<p>No matter how many records are there in a PF but  for load all u can load only 9999 max..<br />
i.e.<br />
in the Subfile u need to mention SFLSIZ  = &#8221; Number of records u want to load &#8221;</p>
<p>it will load at a time 9999 only u can&#8217;tgive more than 9999</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: supriyob2</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/exceeding-9999-records-in-load-all-subfile/#comment-72510</link>
		<dc:creator>supriyob2</dc:creator>
		<pubDate>Tue, 12 Jan 2010 11:13:25 +0000</pubDate>
		<guid isPermaLink="false">#comment-72510</guid>
		<description><![CDATA[I know the constraint...but my quetion was:
what will happen if there are 9999+ records in a PF and i am using that file in load-all SFL.
will it only show till 9999 or after that it will abend?]]></description>
		<content:encoded><![CDATA[<p>I know the constraint&#8230;but my quetion was:<br />
what will happen if there are 9999+ records in a PF and i am using that file in load-all SFL.<br />
will it only show till 9999 or after that it will abend?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: reshmag</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/exceeding-9999-records-in-load-all-subfile/#comment-72508</link>
		<dc:creator>reshmag</dc:creator>
		<pubDate>Tue, 12 Jan 2010 10:48:23 +0000</pubDate>
		<guid isPermaLink="false">#comment-72508</guid>
		<description><![CDATA[Hi 
First thing is that u can&#039;t  load more than 9999 at a time at all.
and this is the limitation in Load all subfile 
If u need to do that u need to use Single page Subfile where u need to handle Page Up and Pagedown.
Please check out the link for the Subfiles
http://osdir.com/ml/lang.as400.rpg/2002-11/msg00196.html

Regards
Reshma]]></description>
		<content:encoded><![CDATA[<p>Hi<br />
First thing is that u can&#8217;t  load more than 9999 at a time at all.<br />
and this is the limitation in Load all subfile<br />
If u need to do that u need to use Single page Subfile where u need to handle Page Up and Pagedown.<br />
Please check out the link for the Subfiles<br />
<a href="http://osdir.com/ml/lang.as400.rpg/2002-11/msg00196.html" rel="nofollow">http://osdir.com/ml/lang.as400.rpg/2002-11/msg00196.html</a></p>
<p>Regards<br />
Reshma</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.081 seconds using memcached
Object Caching 379/385 objects using memcached

Served from: itknowledgeexchange.techtarget.com @ 2013-05-18 09:11:52 -->