 




<?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: Converting AS/400 negative numeric to character with leading zeros</title>
	<atom:link href="http://itknowledgeexchange.techtarget.com/itanswers/converting-negative-numeric-to-character-with-leading-zeros/feed/" rel="self" type="application/rss+xml" />
	<link>http://itknowledgeexchange.techtarget.com/itanswers/converting-negative-numeric-to-character-with-leading-zeros/</link>
	<description></description>
	<lastBuildDate>Sun, 26 May 2013 01:40:27 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	
	<item>
		<title>By: philpl1jb</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/converting-negative-numeric-to-character-with-leading-zeros/#comment-84844</link>
		<dc:creator>philpl1jb</dc:creator>
		<pubDate>Sat, 04 Dec 2010 15:37:53 +0000</pubDate>
		<guid isPermaLink="false">#comment-84844</guid>
		<description><![CDATA[2. Really 11 wide for positive and 12 wide for negative???? justified left or right?
Sorry .. negative!!!
What are you using?  RPGLE? (RPG IV) or SQL or COBOL or QUERY.
Phil]]></description>
		<content:encoded><![CDATA[<p>2. Really 11 wide for positive and 12 wide for negative???? justified left or right?<br />
Sorry .. negative!!!<br />
What are you using?  RPGLE? (RPG IV) or SQL or COBOL or QUERY.<br />
Phil</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: philpl1jb</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/converting-negative-numeric-to-character-with-leading-zeros/#comment-84831</link>
		<dc:creator>philpl1jb</dc:creator>
		<pubDate>Sat, 04 Dec 2010 01:03:26 +0000</pubDate>
		<guid isPermaLink="false">#comment-84831</guid>
		<description><![CDATA[Please confirm
1.  You want these formats?
 Positive Amount : 00005679.05 
 Negative Amount: 00000-500.25  &lt;-- this is most unusual!!!  
2.  Really 11 wide for positive and 12 wide for numeric???? justified left or right?
3.  What are you using RPGLE?
Phil]]></description>
		<content:encoded><![CDATA[<p>Please confirm<br />
1.  You want these formats?<br />
 Positive Amount : 00005679.05<br />
 Negative Amount: 00000-500.25  &lt;&#8211; this is most unusual!!!<br />
2.  Really 11 wide for positive and 12 wide for numeric???? justified left or right?<br />
3.  What are you using RPGLE?<br />
Phil</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: tomliotta</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/converting-negative-numeric-to-character-with-leading-zeros/#comment-84782</link>
		<dc:creator>tomliotta</dc:creator>
		<pubDate>Fri, 03 Dec 2010 02:59:50 +0000</pubDate>
		<guid isPermaLink="false">#comment-84782</guid>
		<description><![CDATA[&lt;i&gt;Negative Amount: 00000-500.25 = -500.25&lt;/i&gt;

What does that mean?

Are you saying that you have &quot;00000-500.25&quot; in a variable and you want to convert it to &quot;-500.25&quot; in another variable? Or do you want to convert &quot;-500.25&quot; to &quot;00000-500.25&quot;? Or was the first value just typed incorrectly? Neither of those two values are &quot;numeric&quot;.

What &lt;b&gt;exactly&lt;/b&gt; are you trying to do? What are the field definitions and what are some actual example values?

And maybe we should ask why you&#039;re doing it in program code? Usually a minus or plus sign is irrelevant in a numeric program variable. The signs are usually only meaningful to humans when they&#039;re actually looking at a display or a printed report. The sign characters are normally generated automatically by the output specifications, not by program code.

It&#039;s true that there are situations where this should be done in program variables, but I&#039;d sure hate to find out that it all came from a misunderstanding of how to control output! It seems like there are almost too many questions like this.

Tom]]></description>
		<content:encoded><![CDATA[<p><i>Negative Amount: 00000-500.25 = -500.25</i></p>
<p>What does that mean?</p>
<p>Are you saying that you have &#8220;00000-500.25&#8243; in a variable and you want to convert it to &#8220;-500.25&#8243; in another variable? Or do you want to convert &#8220;-500.25&#8243; to &#8220;00000-500.25&#8243;? Or was the first value just typed incorrectly? Neither of those two values are &#8220;numeric&#8221;.</p>
<p>What <b>exactly</b> are you trying to do? What are the field definitions and what are some actual example values?</p>
<p>And maybe we should ask why you&#8217;re doing it in program code? Usually a minus or plus sign is irrelevant in a numeric program variable. The signs are usually only meaningful to humans when they&#8217;re actually looking at a display or a printed report. The sign characters are normally generated automatically by the output specifications, not by program code.</p>
<p>It&#8217;s true that there are situations where this should be done in program variables, but I&#8217;d sure hate to find out that it all came from a misunderstanding of how to control output! It seems like there are almost too many questions like this.</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.012 seconds using memcached
Object Caching 296/299 objects using memcached

Served from: itknowledgeexchange.techtarget.com @ 2013-05-26 07:18:06 -->