<?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 can we write an AS/400 subfile program without using any indicators?</title>
	<atom:link href="http://itknowledgeexchange.techtarget.com/itanswers/rpglesubfiles/feed/" rel="self" type="application/rss+xml" />
	<link>http://itknowledgeexchange.techtarget.com/itanswers/rpglesubfiles/</link>
	<description></description>
	<lastBuildDate>Wed, 19 Jun 2013 09:51:42 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	
	<item>
		<title>By: lwin</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/rpglesubfiles/#comment-95814</link>
		<dc:creator>lwin</dc:creator>
		<pubDate>Thu, 25 Aug 2011 20:36:25 +0000</pubDate>
		<guid isPermaLink="false">#comment-95814</guid>
		<description><![CDATA[Those of us who loved using MOVEA to turn on or off the Subfile keywords here is an example of what I do with like results.

DDS Example
     A  91                               SFLDSPCTL
     A  92                               SFLDSP
     A                                      SFLPAG(10)
     A                                      SFLSIZ(11)
     A                                      WINDOW(6 36 11 33 *NOMSGLIN)
     A  93                               SFLCLR
     A  94                               SFLDLT
     A  95                               SFLINZ
     A N96                             SFLEND(*MORE)

RPGLE example
     FMIC240F   CF   E             WORKSTN INFDS(MIC240DS)
     F                                                                 INDDS(MIC240INDDS)
     F                                                                SFILE(LISTSTR:STRLRRN)

      *
     DMic240IndDS      DS
     D SFLDSPCTL                  N   Overlay(Mic240IndDS:91) Inz(*Off)
     D SFLDSP                          N   Overlay(Mic240IndDS:92) Inz(*Off)
     D SFLCLR                          N   Overlay(Mic240IndDS:93) Inz(*Off)
     D SFLDLT                           N   Overlay(Mic240IndDS:94) Inz(*Off)
     D SFLINZ                            N   Overlay(Mic240IndDS:95) Inz(*Off)
     D SFLEND                          N   Overlay(Mic240IndDS:96) Inz(*Off)
      **
      **  To Delete subfile
     C                   Eval      %SubSt(Mic240IndDS:91:6) = &#039;000100&#039;
      **
     C                   Write     ListStrC
      **
     C                   Eval      %SubSt(Mic240IndDS:91:6) = &#039;000000&#039;
      **

      **  To Display both the control record and subfile
     C                   Eval      %SubSt(Mic240IndDS:91:6) = &#039;110000&#039;
     C                   Eval      SRNNBR = 1
      **
     C                   Exfmt     ListStrC
      **  

For any of those of you that are interested here is another alternative to using the INDARA from the screen in an RPG program.

Elwin (L&#039;win)]]></description>
		<content:encoded><![CDATA[<p>Those of us who loved using MOVEA to turn on or off the Subfile keywords here is an example of what I do with like results.</p>
<p>DDS Example<br />
     A  91                               SFLDSPCTL<br />
     A  92                               SFLDSP<br />
     A                                      SFLPAG(10)<br />
     A                                      SFLSIZ(11)<br />
     A                                      WINDOW(6 36 11 33 *NOMSGLIN)<br />
     A  93                               SFLCLR<br />
     A  94                               SFLDLT<br />
     A  95                               SFLINZ<br />
     A N96                             SFLEND(*MORE)</p>
<p>RPGLE example<br />
     FMIC240F   CF   E             WORKSTN INFDS(MIC240DS)<br />
     F                                                                 INDDS(MIC240INDDS)<br />
     F                                                                SFILE(LISTSTR:STRLRRN)</p>
<p>      *<br />
     DMic240IndDS      DS<br />
     D SFLDSPCTL                  N   Overlay(Mic240IndDS:91) Inz(*Off)<br />
     D SFLDSP                          N   Overlay(Mic240IndDS:92) Inz(*Off)<br />
     D SFLCLR                          N   Overlay(Mic240IndDS:93) Inz(*Off)<br />
     D SFLDLT                           N   Overlay(Mic240IndDS:94) Inz(*Off)<br />
     D SFLINZ                            N   Overlay(Mic240IndDS:95) Inz(*Off)<br />
     D SFLEND                          N   Overlay(Mic240IndDS:96) Inz(*Off)<br />
      **<br />
      **  To Delete subfile<br />
     C                   Eval      %SubSt(Mic240IndDS:91:6) = &#8217;000100&#8242;<br />
      **<br />
     C                   Write     ListStrC<br />
      **<br />
     C                   Eval      %SubSt(Mic240IndDS:91:6) = &#8217;000000&#8242;<br />
      **</p>
<p>      **  To Display both the control record and subfile<br />
     C                   Eval      %SubSt(Mic240IndDS:91:6) = &#8217;110000&#8242;<br />
     C                   Eval      SRNNBR = 1<br />
      **<br />
     C                   Exfmt     ListStrC<br />
      **  </p>
<p>For any of those of you that are interested here is another alternative to using the INDARA from the screen in an RPG program.</p>
<p>Elwin (L&#8217;win)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: murrayinfosys</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/rpglesubfiles/#comment-84011</link>
		<dc:creator>murrayinfosys</dc:creator>
		<pubDate>Thu, 18 Nov 2010 00:51:55 +0000</pubDate>
		<guid isPermaLink="false">#comment-84011</guid>
		<description><![CDATA[The only REAL way to program a SFL w/o indicators is to use 5250 Data Stream API&#039;s

IMHO

Phil (the other Phil)]]></description>
		<content:encoded><![CDATA[<p>The only REAL way to program a SFL w/o indicators is to use 5250 Data Stream API&#8217;s</p>
<p>IMHO</p>
<p>Phil (the other Phil)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: tomliotta</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/rpglesubfiles/#comment-83852</link>
		<dc:creator>tomliotta</dc:creator>
		<pubDate>Tue, 16 Nov 2010 03:02:14 +0000</pubDate>
		<guid isPermaLink="false">#comment-83852</guid>
		<description><![CDATA[Rudedog and Joeyski wrote about how to avoid using conditioning indicators and *INxx indicator references in the program.

The latest example brought to mind another way not to use &quot;indicators&quot; in the &quot;subfile program&quot; -- write the program in C or COBOL. Neither language has to use &quot;indicators&quot; in the program code itself.

Tom]]></description>
		<content:encoded><![CDATA[<p>Rudedog and Joeyski wrote about how to avoid using conditioning indicators and *INxx indicator references in the program.</p>
<p>The latest example brought to mind another way not to use &#8220;indicators&#8221; in the &#8220;subfile program&#8221; &#8212; write the program in C or COBOL. Neither language has to use &#8220;indicators&#8221; in the program code itself.</p>
<p>Tom</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: joeyski</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/rpglesubfiles/#comment-83850</link>
		<dc:creator>joeyski</dc:creator>
		<pubDate>Tue, 16 Nov 2010 01:42:16 +0000</pubDate>
		<guid isPermaLink="false">#comment-83850</guid>
		<description><![CDATA[A                                      DSPSIZ(24 80 *DS3)    
A                                      PRINT(*LIBL/QSYSPRT)  
A                                      INDARA  

A          R WINCT                     SFLCTL(WINSF)          
A*%%TS  SD  20100310  095610  KOZLOWSJ    REL-V5R4M0  5722-WDS
A                                      SFLSIZ(0011)           
A                                      SFLPAG(0011)           
A                                      WINDOW(WIN001)         
A N34                                  ROLLUP                 
A                                      KEEP                   
A                                      SFLCSRRRN(&amp;S1CSRRRN)   
A                                      OVERLAY                
A N32                               SFLDSP                 
A N31                               SFLDSPCTL              
A  31                                 SFLCLR                 

RPG Program
FVaa0585   Cf   e             WorkStn InfDs(VaaInfDs)        
F                                                     IndDs(VaaIndDs)     

D VaaIndDs        Ds                                       
D  SflClr                           n   Overlay(VaaIndDs:31) 
D  SflDsp                         n   Overlay(VaaIndDs:32) 
D  SflEnd                         n   Overlay(VaaIndDs:34) 
D  SflNxtChg                    n   Overlay(VaaIndDs:88) 

   

A  34                                 SFLEND(*MORE)]]></description>
		<content:encoded><![CDATA[<p>A                                      DSPSIZ(24 80 *DS3)<br />
A                                      PRINT(*LIBL/QSYSPRT)<br />
A                                      INDARA  </p>
<p>A          R WINCT                     SFLCTL(WINSF)<br />
A*%%TS  SD  20100310  095610  KOZLOWSJ    REL-V5R4M0  5722-WDS<br />
A                                      SFLSIZ(0011)<br />
A                                      SFLPAG(0011)<br />
A                                      WINDOW(WIN001)<br />
A N34                                  ROLLUP<br />
A                                      KEEP<br />
A                                      SFLCSRRRN(&amp;S1CSRRRN)<br />
A                                      OVERLAY<br />
A N32                               SFLDSP<br />
A N31                               SFLDSPCTL<br />
A  31                                 SFLCLR                 </p>
<p>RPG Program<br />
FVaa0585   Cf   e             WorkStn InfDs(VaaInfDs)<br />
F                                                     IndDs(VaaIndDs)     </p>
<p>D VaaIndDs        Ds<br />
D  SflClr                           n   Overlay(VaaIndDs:31)<br />
D  SflDsp                         n   Overlay(VaaIndDs:32)<br />
D  SflEnd                         n   Overlay(VaaIndDs:34)<br />
D  SflNxtChg                    n   Overlay(VaaIndDs:88) </p>
<p>A  34                                 SFLEND(*MORE)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: tomliotta</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/rpglesubfiles/#comment-83736</link>
		<dc:creator>tomliotta</dc:creator>
		<pubDate>Fri, 12 Nov 2010 21:23:02 +0000</pubDate>
		<guid isPermaLink="false">#comment-83736</guid>
		<description><![CDATA[You can write subfiles that don&#039;t use indicators simply by not using them in ways that require indicators.

For example, SFLEND requires an option indicator, but SFLEND is not a required keyword -- simply don&#039;t use it. That means that there won&#039;t be any way for a user to tell if more records are available except by getting a device error when attempting to scroll past the end, but users commonly do that anyway.

You shouldn&#039;t use SFLCLR without an option indicator because it will clear the subfile every time you write the control record. But you don&#039;t have to clear a subfile in order to use it. Just don&#039;t use the subfile in a way that needs clearing. I have subfiles that are never cleared because I never need to use them twice in the same CALL.

SFLDSP and SFLDSPCTL don&#039;t require option indicators. You would only use indicators if you wanted to display the control record without displaying the subfile at the same time or if you wanted to execute a control function without displaying control or subfiles on the screen. As long as you structure things so that both control and subfile always display when you write the control format, neither of the keywords need option indicators.

In short, you don&#039;t &lt;b&gt;need to use&lt;/b&gt; indicators. You use indicators when you &lt;b&gt;want&lt;/b&gt; the specific types of control that you &lt;b&gt;decide to include&lt;/b&gt;. There are a couple things that you can do with indicators that can&#039;t be done any other way through subfiles. Indicators can make those things easy to do.

Tom]]></description>
		<content:encoded><![CDATA[<p>You can write subfiles that don&#8217;t use indicators simply by not using them in ways that require indicators.</p>
<p>For example, SFLEND requires an option indicator, but SFLEND is not a required keyword &#8212; simply don&#8217;t use it. That means that there won&#8217;t be any way for a user to tell if more records are available except by getting a device error when attempting to scroll past the end, but users commonly do that anyway.</p>
<p>You shouldn&#8217;t use SFLCLR without an option indicator because it will clear the subfile every time you write the control record. But you don&#8217;t have to clear a subfile in order to use it. Just don&#8217;t use the subfile in a way that needs clearing. I have subfiles that are never cleared because I never need to use them twice in the same CALL.</p>
<p>SFLDSP and SFLDSPCTL don&#8217;t require option indicators. You would only use indicators if you wanted to display the control record without displaying the subfile at the same time or if you wanted to execute a control function without displaying control or subfiles on the screen. As long as you structure things so that both control and subfile always display when you write the control format, neither of the keywords need option indicators.</p>
<p>In short, you don&#8217;t <b>need to use</b> indicators. You use indicators when you <b>want</b> the specific types of control that you <b>decide to include</b>. There are a couple things that you can do with indicators that can&#8217;t be done any other way through subfiles. Indicators can make those things easy to do.</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 324/327 objects using memcached

Served from: itknowledgeexchange.techtarget.com @ 2013-06-19 10:16:21 -->