 




<?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: how to display blank rows in a subfile in rpgle</title>
	<atom:link href="http://itknowledgeexchange.techtarget.com/itanswers/how-to-display-blank-rows-in-a-subfile-in-rpgle/feed/" rel="self" type="application/rss+xml" />
	<link>http://itknowledgeexchange.techtarget.com/itanswers/how-to-display-blank-rows-in-a-subfile-in-rpgle/</link>
	<description></description>
	<lastBuildDate>Thu, 23 May 2013 11:00:18 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	
	<item>
		<title>By: tomliotta</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/how-to-display-blank-rows-in-a-subfile-in-rpgle/#comment-100053</link>
		<dc:creator>tomliotta</dc:creator>
		<pubDate>Fri, 09 Dec 2011 20:20:45 +0000</pubDate>
		<guid isPermaLink="false">#comment-100053</guid>
		<description><![CDATA[&lt;i&gt;I create the subfile as per normal and load existing records into I/O fields until eof and then add n number of blank records for user entry.&lt;/i&gt;

It can be useful for add/change/delete, but it has a pretty limited utility. A file with only, say, 500 records would require this user to scroll down 50 times just to add a single record.

It&#039;d seem much better to have an entry subfile selected by appropriate F-key or to have an entry line reserved at the top of the subfile. Switching to an entry subfile should allow more modular code.

At least, it seems that way at first thought. If it works for you and user&#039;s are happy, that might be the best metric.

Tom]]></description>
		<content:encoded><![CDATA[<p><i>I create the subfile as per normal and load existing records into I/O fields until eof and then add n number of blank records for user entry.</i></p>
<p>It can be useful for add/change/delete, but it has a pretty limited utility. A file with only, say, 500 records would require this user to scroll down 50 times just to add a single record.</p>
<p>It&#8217;d seem much better to have an entry subfile selected by appropriate F-key or to have an entry line reserved at the top of the subfile. Switching to an entry subfile should allow more modular code.</p>
<p>At least, it seems that way at first thought. If it works for you and user&#8217;s are happy, that might be the best metric.</p>
<p>Tom</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: splat</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/how-to-display-blank-rows-in-a-subfile-in-rpgle/#comment-100028</link>
		<dc:creator>splat</dc:creator>
		<pubDate>Fri, 09 Dec 2011 15:42:43 +0000</pubDate>
		<guid isPermaLink="false">#comment-100028</guid>
		<description><![CDATA[I&#039;d use a for loop to load the blank lines

&lt;pre&gt;For x = ([subfile size] - [records written]) to [subfile size];
 [increment relative record number];
 Write(e) [subfile format];
EndFor;&lt;/pre&gt;]]></description>
		<content:encoded><![CDATA[<p>I&#8217;d use a for loop to load the blank lines</p>
<pre>For x = ([subfile size] - [records written]) to [subfile size];
 [increment relative record number];
 Write(e) [subfile format];
EndFor;</pre>
]]></content:encoded>
	</item>
	<item>
		<title>By: neild</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/how-to-display-blank-rows-in-a-subfile-in-rpgle/#comment-100014</link>
		<dc:creator>neild</dc:creator>
		<pubDate>Fri, 09 Dec 2011 09:28:23 +0000</pubDate>
		<guid isPermaLink="false">#comment-100014</guid>
		<description><![CDATA[Actually we use this type of entry subfile quite a lot on our system.
Whilst not my personal choice of record maintenance, It does allow the users to add/change/delete records very easily. 
I create the subfile as per normal and load existing records into I/O fields until eof and then add n number of blank records for user entry.
If you don&#039;t want the user to change an existing record simply set a DSPATR(PR) against fields for the record.]]></description>
		<content:encoded><![CDATA[<p>Actually we use this type of entry subfile quite a lot on our system.<br />
Whilst not my personal choice of record maintenance, It does allow the users to add/change/delete records very easily.<br />
I create the subfile as per normal and load existing records into I/O fields until eof and then add n number of blank records for user entry.<br />
If you don&#8217;t want the user to change an existing record simply set a DSPATR(PR) against fields for the record.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: tomliotta</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/how-to-display-blank-rows-in-a-subfile-in-rpgle/#comment-99993</link>
		<dc:creator>tomliotta</dc:creator>
		<pubDate>Thu, 08 Dec 2011 23:30:07 +0000</pubDate>
		<guid isPermaLink="false">#comment-99993</guid>
		<description><![CDATA[It&#039;s an odd requirement. I assume it&#039;s a learning exercise. Pradeep&#039;s suggestion seems like the best possibility -- after writing the first five records, loop through five more putting initialized values (blanks or zeros) into the the remaining records.

I haven&#039;t tried this, but since you&#039;re trying to use SFLINZ, there might be a different possibility. Write the subfile control format with SFLINZ on and SFLDSP off. That should build a subfile with initialized records. Then load the subfile by looping through your data file file and &lt;b&gt;updating&lt;/b&gt; subfile records by relative record number. If there are only five data records, then only the first five subfile records should be updated with data values; the remaining five should still have their initial values.

When all data records have been processed, use EXFMT to output the subfile control format again, this time with SFLINZ off and SFLDSP on.

Tom]]></description>
		<content:encoded><![CDATA[<p>It&#8217;s an odd requirement. I assume it&#8217;s a learning exercise. Pradeep&#8217;s suggestion seems like the best possibility &#8212; after writing the first five records, loop through five more putting initialized values (blanks or zeros) into the the remaining records.</p>
<p>I haven&#8217;t tried this, but since you&#8217;re trying to use SFLINZ, there might be a different possibility. Write the subfile control format with SFLINZ on and SFLDSP off. That should build a subfile with initialized records. Then load the subfile by looping through your data file file and <b>updating</b> subfile records by relative record number. If there are only five data records, then only the first five subfile records should be updated with data values; the remaining five should still have their initial values.</p>
<p>When all data records have been processed, use EXFMT to output the subfile control format again, this time with SFLINZ off and SFLDSP on.</p>
<p>Tom</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: deepu9321</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/how-to-display-blank-rows-in-a-subfile-in-rpgle/#comment-99954</link>
		<dc:creator>deepu9321</dc:creator>
		<pubDate>Thu, 08 Dec 2011 10:52:47 +0000</pubDate>
		<guid isPermaLink="false">#comment-99954</guid>
		<description><![CDATA[I havent tried the similar case. 
But, A guess, While loading the records to Subfile, In 3rd Iteration(20 - 30), You might be having a condition to Write the Records until EOF.
Have you tried to Repeat the Loop to write the Blank Records till RRN becomes 30.
Something like,
&lt;pre&gt;
/Free
      Dow RecCnt &lt;= 10 ;
              If %EOF() ;
                 Move Blanks ; //Blanks to Subfile Fields
              Else ;
                 Move PFData ; //Write Records from PF
              EndIF ;
              RecCnt = RecCnt + 1 ;
              RRN = RRN + 1 ;
       EndDo ;
/End-Free
&lt;/pre&gt;

All the other Operations including SFLEND, PAGEDOWN will be handled in a similar way.

Pradeep.]]></description>
		<content:encoded><![CDATA[<p>I havent tried the similar case.<br />
But, A guess, While loading the records to Subfile, In 3rd Iteration(20 &#8211; 30), You might be having a condition to Write the Records until EOF.<br />
Have you tried to Repeat the Loop to write the Blank Records till RRN becomes 30.<br />
Something like,</p>
<pre>
/Free
      Dow RecCnt &lt;= 10 ;
              If %EOF() ;
                 Move Blanks ; //Blanks to Subfile Fields
              Else ;
                 Move PFData ; //Write Records from PF
              EndIF ;
              RecCnt = RecCnt + 1 ;
              RRN = RRN + 1 ;
       EndDo ;
/End-Free
</pre>
<p>All the other Operations including SFLEND, PAGEDOWN will be handled in a similar way.</p>
<p>Pradeep.</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.043 seconds using memcached
Object Caching 323/329 objects using memcached

Served from: itknowledgeexchange.techtarget.com @ 2013-05-23 12:22:39 -->