 




<?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: subfile</title>
	<atom:link href="http://itknowledgeexchange.techtarget.com/itanswers/subfile-19/feed/" rel="self" type="application/rss+xml" />
	<link>http://itknowledgeexchange.techtarget.com/itanswers/subfile-19/</link>
	<description></description>
	<lastBuildDate>Thu, 23 May 2013 20:47:04 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	
	<item>
		<title>By: shyedajmal</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/subfile-19/#comment-107048</link>
		<dc:creator>shyedajmal</dc:creator>
		<pubDate>Mon, 30 Apr 2012 04:31:50 +0000</pubDate>
		<guid isPermaLink="false">#comment-107048</guid>
		<description><![CDATA[Tom i will select the first subfile record..]]></description>
		<content:encoded><![CDATA[<p>Tom i will select the first subfile record..</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: tomliotta</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/subfile-19/#comment-107028</link>
		<dc:creator>tomliotta</dc:creator>
		<pubDate>Sat, 28 Apr 2012 01:43:20 +0000</pubDate>
		<guid isPermaLink="false">#comment-107028</guid>
		<description><![CDATA[&lt;i&gt;if i give &quot;1&quot; in that selection field without pressing &quot;enter&quot; it has to be move values from subfile screen to display file?&lt;/i&gt;

Nothing will be done with the fields from a subfile record unless your program reads the subfile record. Your program has to know when it should read. You tell it when to read by pressing &lt;Enter&gt;.

Splat mentions an alternative -- CHECK(ER). That can cause an automatic &lt;Enter&gt; whenever you type something into the field and you type the last character in the field. If the subfile field is only one character wide, then you will type the last character in the field as soon as you type the &quot;1&quot;.

Your program can then get control and read the subfile.

CharlieBrowne mentions that the fields in your subfile record may have the same names as the fields in other formats in your display file. If they have the same names, then they are actually the same fields. They reference the same memory.

After your program reads the subfile record, it has to write the format that you want to display. The values in those fields will be on the display screen after the write happens.

If the fields don&#039;t have the same names, your program must move the values from the subfile record to the other display record. It has to do that after it reads the subfile but before it writes the other format.

When you read the subfile, you should only read &quot;changed records&quot;. That&#039;s what the READC instruction is for. As Splat said, any change at all will cause a subfile record to change. Your program needs to check to be sure that the &quot;1&quot; is in the subfile field. If it isn&#039;t, then you shouldn&#039;t write the other display format.

Also, what will you do if two subfile records have a &quot;1&quot;?

No matter what, none of it is going to happen automatically. You have to write all of it.

Tom]]></description>
		<content:encoded><![CDATA[<p><i>if i give &#8220;1&#8243; in that selection field without pressing &#8220;enter&#8221; it has to be move values from subfile screen to display file?</i></p>
<p>Nothing will be done with the fields from a subfile record unless your program reads the subfile record. Your program has to know when it should read. You tell it when to read by pressing &lt;Enter&gt;.</p>
<p>Splat mentions an alternative &#8212; CHECK(ER). That can cause an automatic &lt;Enter&gt; whenever you type something into the field and you type the last character in the field. If the subfile field is only one character wide, then you will type the last character in the field as soon as you type the &#8220;1&#8243;.</p>
<p>Your program can then get control and read the subfile.</p>
<p>CharlieBrowne mentions that the fields in your subfile record may have the same names as the fields in other formats in your display file. If they have the same names, then they are actually the same fields. They reference the same memory.</p>
<p>After your program reads the subfile record, it has to write the format that you want to display. The values in those fields will be on the display screen after the write happens.</p>
<p>If the fields don&#8217;t have the same names, your program must move the values from the subfile record to the other display record. It has to do that after it reads the subfile but before it writes the other format.</p>
<p>When you read the subfile, you should only read &#8220;changed records&#8221;. That&#8217;s what the READC instruction is for. As Splat said, any change at all will cause a subfile record to change. Your program needs to check to be sure that the &#8220;1&#8243; is in the subfile field. If it isn&#8217;t, then you shouldn&#8217;t write the other display format.</p>
<p>Also, what will you do if two subfile records have a &#8220;1&#8243;?</p>
<p>No matter what, none of it is going to happen automatically. You have to write all of it.</p>
<p>Tom</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: splat</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/subfile-19/#comment-107016</link>
		<dc:creator>splat</dc:creator>
		<pubDate>Fri, 27 Apr 2012 14:48:27 +0000</pubDate>
		<guid isPermaLink="false">#comment-107016</guid>
		<description><![CDATA[Your note that &quot;move values from subfile screen to display file&quot; doesn&#039;t quite scan - a subfile is part of a display file, not something separate.  Clarification would help.

You could use CHECK(ER) on the selection field to force an Enter.  Keep in mind that any value, including blank (x&#039;40&#039;) entered in that field will trigger an Enter.]]></description>
		<content:encoded><![CDATA[<p>Your note that &#8220;move values from subfile screen to display file&#8221; doesn&#8217;t quite scan &#8211; a subfile is part of a display file, not something separate.  Clarification would help.</p>
<p>You could use CHECK(ER) on the selection field to force an Enter.  Keep in mind that any value, including blank (x&#8217;40&#8242;) entered in that field will trigger an Enter.</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.012 seconds using memcached
Object Caching 296/299 objects using memcached

Served from: itknowledgeexchange.techtarget.com @ 2013-05-23 20:51:15 -->