 




<?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: DDS / RPG &#8211; cursor management</title>
	<atom:link href="http://itknowledgeexchange.techtarget.com/itanswers/dds-rpg-cursor-management/feed/" rel="self" type="application/rss+xml" />
	<link>http://itknowledgeexchange.techtarget.com/itanswers/dds-rpg-cursor-management/</link>
	<description></description>
	<lastBuildDate>Fri, 24 May 2013 02:38:15 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	
	<item>
		<title>By: splat</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/dds-rpg-cursor-management/#comment-70608</link>
		<dc:creator>splat</dc:creator>
		<pubDate>Thu, 19 Nov 2009 15:34:05 +0000</pubDate>
		<guid isPermaLink="false">#comment-70608</guid>
		<description><![CDATA[For your problem, this&#039;ll work if the records displayed don&#039;t change (1st stays 1st, 2nd stays 2nd) from when the Enter key is pressed to when the records are redisplayed.

On the SFLCTL record format, include this:

&lt;pre&gt;                          CSRLOC(ROW        COLUMN)
                          RTNCSRLOC(&amp;FORMAT &amp;FIELD)
ROW            3S 0H                               
COLUMN         3S 0H&lt;/pre&gt;                               


In the RPG include this:

&lt;pre&gt;FDisplay   Cf   e             Workstn                     
F                                     sfile(subfile: rrna)
F                                     infds(workstn)      
&lt;/pre&gt;

&lt;pre&gt;D Workstn         Ds                 
D  dspfilnm         *file            
D  dsprcdnm         *record          
D  function             369    369   
D  cursor               370    371b 0
&lt;/pre&gt;

&lt;pre&gt;Csr   cursor        Div       256           row   
Csr                 Mvr                     column
&lt;/pre&gt;

(I&#039;m pulling this from an older program - don&#039;t bust my chops for not using /Free).

If you want the cursor to assume the default position (first input-capable field on the format), simply clear &lt;b&gt;row&lt;/b&gt; and &lt;b&gt;column&lt;/b&gt;.

This isn&#039;t limited to subfiles &amp; has the advantage of not requiring any indicators.]]></description>
		<content:encoded><![CDATA[<p>For your problem, this&#8217;ll work if the records displayed don&#8217;t change (1st stays 1st, 2nd stays 2nd) from when the Enter key is pressed to when the records are redisplayed.</p>
<p>On the SFLCTL record format, include this:</p>
<pre>                          CSRLOC(ROW        COLUMN)
                          RTNCSRLOC(&amp;FORMAT &amp;FIELD)
ROW            3S 0H                               
COLUMN         3S 0H</pre>
<p>In the RPG include this:</p>
<pre>FDisplay   Cf   e             Workstn                     
F                                     sfile(subfile: rrna)
F                                     infds(workstn)      
</pre>
<pre>D Workstn         Ds                 
D  dspfilnm         *file            
D  dsprcdnm         *record          
D  function             369    369   
D  cursor               370    371b 0
</pre>
<pre>Csr   cursor        Div       256           row   
Csr                 Mvr                     column
</pre>
<p>(I&#8217;m pulling this from an older program &#8211; don&#8217;t bust my chops for not using /Free).</p>
<p>If you want the cursor to assume the default position (first input-capable field on the format), simply clear <b>row</b> and <b>column</b>.</p>
<p>This isn&#8217;t limited to subfiles &amp; has the advantage of not requiring any indicators.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: pdraebel</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/dds-rpg-cursor-management/#comment-70598</link>
		<dc:creator>pdraebel</dc:creator>
		<pubDate>Thu, 19 Nov 2009 08:31:57 +0000</pubDate>
		<guid isPermaLink="false">#comment-70598</guid>
		<description><![CDATA[Updating the subfile record with display attribute Position cursor in effect. If you have updated multiple records with this indicator active the cursor will be positioned on the first subfile record that has the display attribute in effect.]]></description>
		<content:encoded><![CDATA[<p>Updating the subfile record with display attribute Position cursor in effect. If you have updated multiple records with this indicator active the cursor will be positioned on the first subfile record that has the display attribute in effect.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: tomliotta</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/dds-rpg-cursor-management/#comment-70556</link>
		<dc:creator>tomliotta</dc:creator>
		<pubDate>Wed, 18 Nov 2009 08:06:50 +0000</pubDate>
		<guid isPermaLink="false">#comment-70556</guid>
		<description><![CDATA[You didn&#039;t tell us what you tried; only that what you tried didn&#039;t work. That means we have to guess if you already tried what we might suggest.

How do you remove the option that the user entered from the option field? Bo you rewrite the subfile? Or do you issue an UPDATE to the subfile RRN to blank out just that one subfile option field?

Tom]]></description>
		<content:encoded><![CDATA[<p>You didn&#8217;t tell us what you tried; only that what you tried didn&#8217;t work. That means we have to guess if you already tried what we might suggest.</p>
<p>How do you remove the option that the user entered from the option field? Bo you rewrite the subfile? Or do you issue an UPDATE to the subfile RRN to blank out just that one subfile option field?</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.013 seconds using memcached
Object Caching 296/299 objects using memcached

Served from: itknowledgeexchange.techtarget.com @ 2013-05-24 03:36:11 -->