 




<?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: AS/400 Subfile &#8211; Strange error</title>
	<atom:link href="http://itknowledgeexchange.techtarget.com/itanswers/subfile-strange-error/feed/" rel="self" type="application/rss+xml" />
	<link>http://itknowledgeexchange.techtarget.com/itanswers/subfile-strange-error/</link>
	<description></description>
	<lastBuildDate>Sat, 25 May 2013 23:02:16 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	
	<item>
		<title>By: tomliotta</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/subfile-strange-error/#comment-71209</link>
		<dc:creator>tomliotta</dc:creator>
		<pubDate>Fri, 04 Dec 2009 01:24:21 +0000</pubDate>
		<guid isPermaLink="false">#comment-71209</guid>
		<description><![CDATA[&lt;i&gt;Check to make sure you are using the correct DSPF.&lt;/i&gt;

That&#039;s from CharlieBrowne&#039;s original &quot;Answer&quot;. As discussion went on, it started becoming clear that &lt;i&gt;&quot;I checked all that thrice&quot;&lt;/i&gt; might have been a slight exaggeration. At some point, ya&#039; gotta verify the fundamentals, eh?

Tom]]></description>
		<content:encoded><![CDATA[<p><i>Check to make sure you are using the correct DSPF.</i></p>
<p>That&#8217;s from CharlieBrowne&#8217;s original &#8220;Answer&#8221;. As discussion went on, it started becoming clear that <i>&#8220;I checked all that thrice&#8221;</i> might have been a slight exaggeration. At some point, ya&#8217; gotta verify the fundamentals, eh?</p>
<p>Tom</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: nutangujar</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/subfile-strange-error/#comment-71191</link>
		<dc:creator>nutangujar</dc:creator>
		<pubDate>Thu, 03 Dec 2009 15:13:13 +0000</pubDate>
		<guid isPermaLink="false">#comment-71191</guid>
		<description><![CDATA[Thanks all.....it worked...the buffer was being sent to the old file during runtime..which had character lenghth 1 
Thanks very much for all your help!!!!! :-)]]></description>
		<content:encoded><![CDATA[<p>Thanks all&#8230;..it worked&#8230;the buffer was being sent to the old file during runtime..which had character lenghth 1<br />
Thanks very much for all your help!!!!! <img src='http://itknowledgeexchange.techtarget.com/itanswers/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: philpl1jb</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/subfile-strange-error/#comment-71164</link>
		<dc:creator>philpl1jb</dc:creator>
		<pubDate>Thu, 03 Dec 2009 04:08:01 +0000</pubDate>
		<guid isPermaLink="false">#comment-71164</guid>
		<description><![CDATA[So having eliminated the input process and the program the error must be (drum roll) the display file

I suspect that ...
1.  That field OENFQCD was previously 1 char
2.  That the previous version of the display file is somewhere on your computer
      -- use DSPOBJD *ALLUSR/xxxx *file   &lt;-- substitue your display file name for the xxxx
3.  That the display file has level check .. *NO
4.  That if you did the dspjob for the job that is displaying the bad data, as  Tom suggested, you would discover in opt 14 that the display file is from the location of the older version. 

How  this works - you load the buffer for the display file based on the new spec
You pass this buffer to the old display file.
If level check is *Yes it would send an error but since it isn&#039;t it lays the new buffer  into the  old record structure and everything is pushed to the left 4 spaces or so and since  they are only output the fields are untouched in the RPG program.

Phil]]></description>
		<content:encoded><![CDATA[<p>So having eliminated the input process and the program the error must be (drum roll) the display file</p>
<p>I suspect that &#8230;<br />
1.  That field OENFQCD was previously 1 char<br />
2.  That the previous version of the display file is somewhere on your computer<br />
      &#8212; use DSPOBJD *ALLUSR/xxxx *file   &lt;&#8211; substitue your display file name for the xxxx<br />
3.  That the display file has level check .. *NO<br />
4.  That if you did the dspjob for the job that is displaying the bad data, as  Tom suggested, you would discover in opt 14 that the display file is from the location of the older version. </p>
<p>How  this works &#8211; you load the buffer for the display file based on the new spec<br />
You pass this buffer to the old display file.<br />
If level check is *Yes it would send an error but since it isn&#8217;t it lays the new buffer  into the  old record structure and everything is pushed to the left 4 spaces or so and since  they are only output the fields are untouched in the RPG program.</p>
<p>Phil</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: nutangujar</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/subfile-strange-error/#comment-71153</link>
		<dc:creator>nutangujar</dc:creator>
		<pubDate>Wed, 02 Dec 2009 21:02:45 +0000</pubDate>
		<guid isPermaLink="false">#comment-71153</guid>
		<description><![CDATA[thanks all...I&#039;m still fighting ....I&#039;m debugging the calling program one level up now...looks like i&#039;ll see something there.....]]></description>
		<content:encoded><![CDATA[<p>thanks all&#8230;I&#8217;m still fighting &#8230;.I&#8217;m debugging the calling program one level up now&#8230;looks like i&#8217;ll see something there&#8230;..</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: tomliotta</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/subfile-strange-error/#comment-71149</link>
		<dc:creator>tomliotta</dc:creator>
		<pubDate>Wed, 02 Dec 2009 19:45:38 +0000</pubDate>
		<guid isPermaLink="false">#comment-71149</guid>
		<description><![CDATA[Ensure that you signed off and back on after recompiling. Ensure that any job using the program has ended and restarted after recompiling. That helps with getting activation groups cleaned up, QTEMP cleaned up, QRPLOBJ out of the picture, etc.

Then, recreate the problem. Use DSPJOB when the problem is on the screen to ensure the job&#039;s library list, call stack library names and open files llibrary names are all as expected.

Clearly there&#039;s something involved that we&#039;re not able to see because we&#039;re remote.

Tom]]></description>
		<content:encoded><![CDATA[<p>Ensure that you signed off and back on after recompiling. Ensure that any job using the program has ended and restarted after recompiling. That helps with getting activation groups cleaned up, QTEMP cleaned up, QRPLOBJ out of the picture, etc.</p>
<p>Then, recreate the problem. Use DSPJOB when the problem is on the screen to ensure the job&#8217;s library list, call stack library names and open files llibrary names are all as expected.</p>
<p>Clearly there&#8217;s something involved that we&#8217;re not able to see because we&#8217;re remote.</p>
<p>Tom</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: nutangujar</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/subfile-strange-error/#comment-71138</link>
		<dc:creator>nutangujar</dc:creator>
		<pubDate>Wed, 02 Dec 2009 17:20:41 +0000</pubDate>
		<guid isPermaLink="false">#comment-71138</guid>
		<description><![CDATA[yes the values of those variables are same before writing and after writing to the subfile...Those are the correct values fetched from  the DB. ...only subfile when displays shows wrong values....]]></description>
		<content:encoded><![CDATA[<p>yes the values of those variables are same before writing and after writing to the subfile&#8230;Those are the correct values fetched from  the DB. &#8230;only subfile when displays shows wrong values&#8230;.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: charliebrowne</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/subfile-strange-error/#comment-71135</link>
		<dc:creator>charliebrowne</dc:creator>
		<pubDate>Wed, 02 Dec 2009 16:48:39 +0000</pubDate>
		<guid isPermaLink="false">#comment-71135</guid>
		<description><![CDATA[I looked at all the code and I agree that it must in the fetch routine.
When you debug, are you looking at the field when you are doing the write to the subfile?
I would debug after the write and look at the values in these fields:
OENAUDT6  
OENAUTM4  
OENAUUID10
OENDSEQ   
OENNOCD   
OENFQCD   
OENOCCU   
OENPRCD8  
OENCOMT   
OENPFST]]></description>
		<content:encoded><![CDATA[<p>I looked at all the code and I agree that it must in the fetch routine.<br />
When you debug, are you looking at the field when you are doing the write to the subfile?<br />
I would debug after the write and look at the values in these fields:<br />
OENAUDT6<br />
OENAUTM4<br />
OENAUUID10<br />
OENDSEQ<br />
OENNOCD<br />
OENFQCD<br />
OENOCCU<br />
OENPRCD8<br />
OENCOMT<br />
OENPFST</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: nutangujar</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/subfile-strange-error/#comment-71131</link>
		<dc:creator>nutangujar</dc:creator>
		<pubDate>Wed, 02 Dec 2009 15:28:53 +0000</pubDate>
		<guid isPermaLink="false">#comment-71131</guid>
		<description><![CDATA[I just replaced select *  by the actual field names howver I still see the same problem..
OENNOCD still splits ...
I debug the program lately, while debugging OENNOCD = &#039;BLACK&#039; however when it is displayed in the subfile it is &#039;B&#039;           &#039;LACK&#039; ...again the same unwanted spaces introduced..]]></description>
		<content:encoded><![CDATA[<p>I just replaced select *  by the actual field names howver I still see the same problem..<br />
OENNOCD still splits &#8230;<br />
I debug the program lately, while debugging OENNOCD = &#8216;BLACK&#8217; however when it is displayed in the subfile it is &#8216;B&#8217;           &#8216;LACK&#8217; &#8230;again the same unwanted spaces introduced..</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: tomliotta</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/subfile-strange-error/#comment-71031</link>
		<dc:creator>tomliotta</dc:creator>
		<pubDate>Tue, 01 Dec 2009 02:59:23 +0000</pubDate>
		<guid isPermaLink="false">#comment-71031</guid>
		<description><![CDATA[&lt;i&gt;SQL is something like Select * from …&lt;/i&gt;

With the original comment (&quot;fetch cursor&quot;), that&#039;s a possibility. The compile shows library TESTITG, which might not be the run-time library. SQL wouldn&#039;t see the same &#039;level check&#039; as native I/O. If the runtime library file has a new CHAR(1) field before OENNOCD in the buffer (or perhaps a field length was increased), the &quot;SELECT *&quot; could mess things up good. That&#039;s a definite reason for never using &quot;SELECT *&quot; in a production program if you don&#039;t process the SQLDA yourself.

Tom]]></description>
		<content:encoded><![CDATA[<p><i>SQL is something like Select * from …</i></p>
<p>With the original comment (&#8220;fetch cursor&#8221;), that&#8217;s a possibility. The compile shows library TESTITG, which might not be the run-time library. SQL wouldn&#8217;t see the same &#8216;level check&#8217; as native I/O. If the runtime library file has a new CHAR(1) field before OENNOCD in the buffer (or perhaps a field length was increased), the &#8220;SELECT *&#8221; could mess things up good. That&#8217;s a definite reason for never using &#8220;SELECT *&#8221; in a production program if you don&#8217;t process the SQLDA yourself.</p>
<p>Tom</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: philpl1jb</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/subfile-strange-error/#comment-71030</link>
		<dc:creator>philpl1jb</dc:creator>
		<pubDate>Tue, 01 Dec 2009 02:01:27 +0000</pubDate>
		<guid isPermaLink="false">#comment-71030</guid>
		<description><![CDATA[I supect that the problem is in the SQL and the data structure.
SQL is something like   Select * from ...
Fetch into wOEFPGRDNV1
And that wOEFPGRDNV1 isn&#039;t providing the same structure as the data from the Select command.
Phil]]></description>
		<content:encoded><![CDATA[<p>I supect that the problem is in the SQL and the data structure.<br />
SQL is something like   Select * from &#8230;<br />
Fetch into wOEFPGRDNV1<br />
And that wOEFPGRDNV1 isn&#8217;t providing the same structure as the data from the Select command.<br />
Phil</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/8 queries in 0.025 seconds using memcached
Object Caching 399/400 objects using memcached

Served from: itknowledgeexchange.techtarget.com @ 2013-05-26 00:57:48 -->