 




<?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: Error handling in as/400 subfile options</title>
	<atom:link href="http://itknowledgeexchange.techtarget.com/itanswers/error-handling-in-subfile-options/feed/" rel="self" type="application/rss+xml" />
	<link>http://itknowledgeexchange.techtarget.com/itanswers/error-handling-in-subfile-options/</link>
	<description></description>
	<lastBuildDate>Wed, 22 May 2013 18:27:48 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	
	<item>
		<title>By: Featured Member: Splat - ITKE Community Blog</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/error-handling-in-subfile-options/#comment-91840</link>
		<dc:creator>Featured Member: Splat - ITKE Community Blog</dc:creator>
		<pubDate>Thu, 05 May 2011 06:51:37 +0000</pubDate>
		<guid isPermaLink="false">#comment-91840</guid>
		<description><![CDATA[[...] Error handling in AS/400 subfile options [...]]]></description>
		<content:encoded><![CDATA[<p>[...] Error handling in AS/400 subfile options [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: tomliotta</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/error-handling-in-subfile-options/#comment-91249</link>
		<dc:creator>tomliotta</dc:creator>
		<pubDate>Fri, 22 Apr 2011 21:08:43 +0000</pubDate>
		<guid isPermaLink="false">#comment-91249</guid>
		<description><![CDATA[&lt;i&gt;The code shows *in40 as a result of the READC:&lt;/i&gt;

Unfortunately, it doesn&#039;t make clear if it&#039;s for ER or for EOF. But the %EOF() BIF is used in other statements; so we could think that it must be used as the error indicator, which, I suppose could somehow be used with SFLNXTCHG.

If it&#039;s the EOF indicator, then it doesn&#039;t seem to serve any purpose and can be removed.

Tom]]></description>
		<content:encoded><![CDATA[<p><i>The code shows *in40 as a result of the READC:</i></p>
<p>Unfortunately, it doesn&#8217;t make clear if it&#8217;s for ER or for EOF. But the %EOF() BIF is used in other statements; so we could think that it must be used as the error indicator, which, I suppose could somehow be used with SFLNXTCHG.</p>
<p>If it&#8217;s the EOF indicator, then it doesn&#8217;t seem to serve any purpose and can be removed.</p>
<p>Tom</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: pgmbob</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/error-handling-in-subfile-options/#comment-91246</link>
		<dc:creator>pgmbob</dc:creator>
		<pubDate>Fri, 22 Apr 2011 16:36:11 +0000</pubDate>
		<guid isPermaLink="false">#comment-91246</guid>
		<description><![CDATA[@PGMBOB
Caution using 40 on READC AND SFLNXTCHG.

Could you elaborate?
Yes: The code shows *in40 as a result of the READC:
 ReadC RMA02S1 40
Dow Not %Eof 

*in40 is ALSO being used to condition SFLNXTCHG.

I prefer using a different indicator for the results of READC]]></description>
		<content:encoded><![CDATA[<p>@PGMBOB<br />
Caution using 40 on READC AND SFLNXTCHG.</p>
<p>Could you elaborate?<br />
Yes: The code shows *in40 as a result of the READC:<br />
 ReadC RMA02S1 40<br />
Dow Not %Eof </p>
<p>*in40 is ALSO being used to condition SFLNXTCHG.</p>
<p>I prefer using a different indicator for the results of READC</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: tomliotta</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/error-handling-in-subfile-options/#comment-91231</link>
		<dc:creator>tomliotta</dc:creator>
		<pubDate>Fri, 22 Apr 2011 02:20:52 +0000</pubDate>
		<guid isPermaLink="false">#comment-91231</guid>
		<description><![CDATA[&lt;i&gt;...i m using sflnxtchg indicator 40 in readc...&lt;/i&gt;

And this confuses indicator 40 even more.

Tom]]></description>
		<content:encoded><![CDATA[<p><i>&#8230;i m using sflnxtchg indicator 40 in readc&#8230;</i></p>
<p>And this confuses indicator 40 even more.</p>
<p>Tom</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: tomliotta</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/error-handling-in-subfile-options/#comment-91230</link>
		<dc:creator>tomliotta</dc:creator>
		<pubDate>Fri, 22 Apr 2011 02:19:26 +0000</pubDate>
		<guid isPermaLink="false">#comment-91230</guid>
		<description><![CDATA[&lt;i&gt;I used indicator for reverse image as 51-option&lt;/i&gt;

Please show us how it was used. The DDS is needed.

The OPT field is apparently an &#039;I&#039;nput field. Are you also using CHGINPDFT? Are you using ERRMSG() or ERRMSGID()? Are you conditioning DSPATR(RI)? Are you using a program-to-system field?

Without seeing the DDS for the subfile, we can&#039;t know what the display file is doing.

As for indicator 40 on the READC, it seems to serve no purpose.

Tom]]></description>
		<content:encoded><![CDATA[<p><i>I used indicator for reverse image as 51-option</i></p>
<p>Please show us how it was used. The DDS is needed.</p>
<p>The OPT field is apparently an &#8216;I&#8217;nput field. Are you also using CHGINPDFT? Are you using ERRMSG() or ERRMSGID()? Are you conditioning DSPATR(RI)? Are you using a program-to-system field?</p>
<p>Without seeing the DDS for the subfile, we can&#8217;t know what the display file is doing.</p>
<p>As for indicator 40 on the READC, it seems to serve no purpose.</p>
<p>Tom</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: koohiisan</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/error-handling-in-subfile-options/#comment-91228</link>
		<dc:creator>koohiisan</dc:creator>
		<pubDate>Fri, 22 Apr 2011 01:25:41 +0000</pubDate>
		<guid isPermaLink="false">#comment-91228</guid>
		<description><![CDATA[@PGMBOB
&lt;i&gt;Caution using 40 on READC AND SFLNXTCHG.&lt;/i&gt;

Could you elaborate?]]></description>
		<content:encoded><![CDATA[<p>@PGMBOB<br />
<i>Caution using 40 on READC AND SFLNXTCHG.</i></p>
<p>Could you elaborate?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: pgmbob</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/error-handling-in-subfile-options/#comment-91216</link>
		<dc:creator>pgmbob</dc:creator>
		<pubDate>Thu, 21 Apr 2011 19:16:38 +0000</pubDate>
		<guid isPermaLink="false">#comment-91216</guid>
		<description><![CDATA[Caution using 40 on READC AND SFLNXTCHG.]]></description>
		<content:encoded><![CDATA[<p>Caution using 40 on READC AND SFLNXTCHG.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: tomliotta</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/error-handling-in-subfile-options/#comment-91167</link>
		<dc:creator>tomliotta</dc:creator>
		<pubDate>Wed, 20 Apr 2011 21:13:17 +0000</pubDate>
		<guid isPermaLink="false">#comment-91167</guid>
		<description><![CDATA[What does your subfile DDS look like?

Tom]]></description>
		<content:encoded><![CDATA[<p>What does your subfile DDS look like?</p>
<p>Tom</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: splat</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/error-handling-in-subfile-options/#comment-91145</link>
		<dc:creator>splat</dc:creator>
		<pubDate>Wed, 20 Apr 2011 14:43:38 +0000</pubDate>
		<guid isPermaLink="false">#comment-91145</guid>
		<description><![CDATA[Try this instead:

&lt;pre&gt;ReadC RMA02S1 40
Dow Not %Eof
Eval *In51 = *Off

Select
When OPT = ‘2′
ExSr Change

When OPT = ‘4′
ExSr Delete

When OPT = ‘6′

ExSr PRINT

When OPT = ‘ ‘

Other
Eval erropt = ‘Enter Valid Options’
Eval *In51 = *On
EndSL

Update RMA02S1
ReadC RMA02S1 40

EndDo &lt;/pre&gt;]]></description>
		<content:encoded><![CDATA[<p>Try this instead:</p>
<pre>ReadC RMA02S1 40
Dow Not %Eof
Eval *In51 = *Off

Select
When OPT = ‘2′
ExSr Change

When OPT = ‘4′
ExSr Delete

When OPT = ‘6′

ExSr PRINT

When OPT = ‘ ‘

Other
Eval erropt = ‘Enter Valid Options’
Eval *In51 = *On
EndSL

Update RMA02S1
ReadC RMA02S1 40

EndDo </pre>
]]></content:encoded>
	</item>
	<item>
		<title>By: teandy</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/error-handling-in-subfile-options/#comment-91115</link>
		<dc:creator>teandy</dc:creator>
		<pubDate>Tue, 19 Apr 2011 19:59:50 +0000</pubDate>
		<guid isPermaLink="false">#comment-91115</guid>
		<description><![CDATA[Use the following as an example:

&lt;pre&gt;
FADP0006FM CF   E             WORKSTN INFDS(WSINFDS)       
F                                     INDDS(INDICATORS)    
F                                     SFILE(ADP000601:RRN) 

 ********************************************************************** 
 *  INDICATOR DATA STRUCTURE BECAUSE OF THE INDARA COMMAND IN DSP FILE  
 ********************************************************************** 
D INDICATORS      DS                                                    
D  PLUS_CODE_ERROR...                                                   
D                        25     25N   INZ(*OFF)                         


READC ADP000601;                                        
                                                        
DOW NOT %EOF(ADP0006FM);                                
                                                        
  IF SFLSEL &lt;&gt; &#039;2&#039; AND SFLSEL &lt;&gt; &#039;4&#039; AND SFLSEL &lt;&gt; &#039; &#039;; 
                                                        
    IDX = 1;                                            
    PLUS_CODE_ERROR = *ON;                              
    EXSR DSPERROR;                                      
    SUBFILE_NXT_CHG = *ON;                              
    SFPAGE = RRN;                                       
    UPDATE ADP000601;                                   
                                                        
    LEAVE;                                              
&lt;/pre&gt;]]></description>
		<content:encoded><![CDATA[<p>Use the following as an example:</p>
<pre>
FADP0006FM CF   E             WORKSTN INFDS(WSINFDS)       
F                                     INDDS(INDICATORS)    
F                                     SFILE(ADP000601:RRN) 

 ********************************************************************** 
 *  INDICATOR DATA STRUCTURE BECAUSE OF THE INDARA COMMAND IN DSP FILE  
 ********************************************************************** 
D INDICATORS      DS                                                    
D  PLUS_CODE_ERROR...                                                   
D                        25     25N   INZ(*OFF)                         


READC ADP000601;                                        
                                                        
DOW NOT %EOF(ADP0006FM);                                
                                                        
  IF SFLSEL &lt;&gt; '2' AND SFLSEL &lt;&gt; '4' AND SFLSEL &lt;&gt; ' '; 
                                                        
    IDX = 1;                                            
    PLUS_CODE_ERROR = *ON;                              
    EXSR DSPERROR;                                      
    SUBFILE_NXT_CHG = *ON;                              
    SFPAGE = RRN;                                       
    UPDATE ADP000601;                                   
                                                        
    LEAVE;                                              
</pre>
]]></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.037 seconds using memcached
Object Caching 393/399 objects using memcached

Served from: itknowledgeexchange.techtarget.com @ 2013-05-23 01:15:47 -->