 




<?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 to capture decimal value of numeric fld</title>
	<atom:link href="http://itknowledgeexchange.techtarget.com/itanswers/how-to-capture-decimal-value-of-numeric-fld/feed/" rel="self" type="application/rss+xml" />
	<link>http://itknowledgeexchange.techtarget.com/itanswers/how-to-capture-decimal-value-of-numeric-fld/</link>
	<description></description>
	<lastBuildDate>Fri, 24 May 2013 17:13:17 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	
	<item>
		<title>By: philpl1jb</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/how-to-capture-decimal-value-of-numeric-fld/#comment-112462</link>
		<dc:creator>philpl1jb</dc:creator>
		<pubDate>Thu, 18 Oct 2012 23:21:21 +0000</pubDate>
		<guid isPermaLink="false">http://itknowledgeexchange.techtarget.com/itanswers/how-to-capture-decimal-value-of-numeric-fld/#comment-112462</guid>
		<description><![CDATA[Oh sorry ...&#160;RPG III .. why would you do that?&#160; Is this another interview question? . &#160;But if you must, check out the DIV and MVR commands.&#160; If you divide by 1 the Remainder (MVR) would be the decimal.&#160;]]></description>
		<content:encoded><![CDATA[<p>Oh sorry &#8230;&nbsp;RPG III .. why would you do that?&nbsp; Is this another interview question? . &nbsp;But if you must, check out the DIV and MVR commands.&nbsp; If you divide by 1 the Remainder (MVR) would be the decimal.&nbsp;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: philpl1jb</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/how-to-capture-decimal-value-of-numeric-fld/#comment-112460</link>
		<dc:creator>philpl1jb</dc:creator>
		<pubDate>Thu, 18 Oct 2012 23:13:27 +0000</pubDate>
		<guid isPermaLink="false">http://itknowledgeexchange.techtarget.com/itanswers/how-to-capture-decimal-value-of-numeric-fld/#comment-112460</guid>
		<description><![CDATA[Or perhaps an EVAL statement like:DecVal = Val - %int(Val)]]></description>
		<content:encoded><![CDATA[<p>Or perhaps an EVAL statement like:DecVal = Val &#8211; %int(Val)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: TomLiotta</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/how-to-capture-decimal-value-of-numeric-fld/#comment-112459</link>
		<dc:creator>TomLiotta</dc:creator>
		<pubDate>Thu, 18 Oct 2012 23:06:22 +0000</pubDate>
		<guid isPermaLink="false">http://itknowledgeexchange.techtarget.com/itanswers/how-to-capture-decimal-value-of-numeric-fld/#comment-112459</guid>
		<description><![CDATA[Well, sorry about the formatting. This editor makes very little sense.
&#160;
The @CVT field is defined over positions 1-5 with 3 decimal fraction positions. It&#039;s zoned decimal. Both @FRAC and FRAC also have 3 decimal positions and are zoned decimal. @FRAC is defined starting position 3 of the DS because that&#039;s where the fractional portion of @CVT begins. @CVT is where your numeric value will be placed for conversion to just the fractional portion.
&#160;
Tom]]></description>
		<content:encoded><![CDATA[<p>Well, sorry about the formatting. This editor makes very little sense.<br />
&nbsp;<br />
The @CVT field is defined over positions 1-5 with 3 decimal fraction positions. It&#8217;s zoned decimal. Both @FRAC and FRAC also have 3 decimal positions and are zoned decimal. @FRAC is defined starting position 3 of the DS because that&#8217;s where the fractional portion of @CVT begins. @CVT is where your numeric value will be placed for conversion to just the fractional portion.<br />
&nbsp;<br />
Tom</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: TomLiotta</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/how-to-capture-decimal-value-of-numeric-fld/#comment-112458</link>
		<dc:creator>TomLiotta</dc:creator>
		<pubDate>Thu, 18 Oct 2012 23:00:33 +0000</pubDate>
		<guid isPermaLink="false">http://itknowledgeexchange.techtarget.com/itanswers/how-to-capture-decimal-value-of-numeric-fld/#comment-112458</guid>
		<description><![CDATA[It depends on exact circumstances, but using data structure subfields will get your exact requirement handled.
&#160;     I            DS
     I                                        1   53@CVT
     I                                        3   53@FRAC
     I            DS
     I                                        1   33FRAC
     C                     Z-ADD5.78      @CVT
     C                     Z-ADD@FRAC     FRAC
     C*** DO CALCS WITH FRAC...
     C                     SETON                     LR
&#160;Define the subfields to hold the largest numbers of digits, including fractional digits, that your program needs to handle. Make sure that the two intermediate subfields (@CVT and @FRAC) are defined as zoned decimal.
&#160;
(We&#039;ll see how the &quot;code&quot; looks after it gets posted.)
&#160;
Tom]]></description>
		<content:encoded><![CDATA[<p>It depends on exact circumstances, but using data structure subfields will get your exact requirement handled.<br />
&nbsp;     I            DS<br />
     I                                        1   53@CVT<br />
     I                                        3   53@FRAC<br />
     I            DS<br />
     I                                        1   33FRAC<br />
     C                     Z-ADD5.78      @CVT<br />
     C                     Z-ADD@FRAC     FRAC<br />
     C*** DO CALCS WITH FRAC&#8230;<br />
     C                     SETON                     LR<br />
&nbsp;Define the subfields to hold the largest numbers of digits, including fractional digits, that your program needs to handle. Make sure that the two intermediate subfields (@CVT and @FRAC) are defined as zoned decimal.<br />
&nbsp;<br />
(We&#8217;ll see how the &#8220;code&#8221; looks after it gets posted.)<br />
&nbsp;<br />
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.016 seconds using memcached
Object Caching 310/313 objects using memcached

Served from: itknowledgeexchange.techtarget.com @ 2013-05-24 19:17:00 -->