 




<?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 pass Zoned Decimal parameter to a Program from the command line?</title>
	<atom:link href="http://itknowledgeexchange.techtarget.com/itanswers/how-to-pass-zoned-decimal-parameter-to-a-program-from-the-command-line/feed/" rel="self" type="application/rss+xml" />
	<link>http://itknowledgeexchange.techtarget.com/itanswers/how-to-pass-zoned-decimal-parameter-to-a-program-from-the-command-line/</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: bvining</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/how-to-pass-zoned-decimal-parameter-to-a-program-from-the-command-line/#comment-108858</link>
		<dc:creator>bvining</dc:creator>
		<pubDate>Wed, 27 Jun 2012 23:15:09 +0000</pubDate>
		<guid isPermaLink="false">http://itknowledgeexchange.techtarget.com/itanswers/how-to-pass-zoned-decimal-parameter-to-a-program-from-the-command-line/#comment-108858</guid>
		<description><![CDATA[Continuing the example of &#039;0001&#039;, if you wanted a negative value you need to replace the right most digit with the appropriate character value. Representing a value of 0001- would be done by passing &#039;000J&#039;.&#160; If the last digit is a 2 then replace the 2 with a K, 3 with L, 4 with M, and so on to 9 being R. So passing a negative 1234 would be done as &#039;123M&#039;.
A bit more on the details, zoned decimal values of&#160;1 thru&#160;9 are&#160;stored, in EBCDIC,&#160;as x&#039;F1&#039; thru x&#039;F9&#039;. To represent a negative value you change the &quot;left&quot; nibble of the last digit to &#039;D&#039;. x&#039;D1&#039; is EBCDIC character J, x&#039;D2&#039; is K,... and x&#039;D9&#039; is R. Other values can be used, but these are the preferred representations.]]></description>
		<content:encoded><![CDATA[<p>Continuing the example of &#8217;0001&#8242;, if you wanted a negative value you need to replace the right most digit with the appropriate character value. Representing a value of 0001- would be done by passing &#8217;000J&#8217;.&nbsp; If the last digit is a 2 then replace the 2 with a K, 3 with L, 4 with M, and so on to 9 being R. So passing a negative 1234 would be done as &#8217;123M&#8217;.<br />
A bit more on the details, zoned decimal values of&nbsp;1 thru&nbsp;9 are&nbsp;stored, in EBCDIC,&nbsp;as x&#8217;F1&#8242; thru x&#8217;F9&#8242;. To represent a negative value you change the &#8220;left&#8221; nibble of the last digit to &#8216;D&#8217;. x&#8217;D1&#8242; is EBCDIC character J, x&#8217;D2&#8242; is K,&#8230; and x&#8217;D9&#8242; is R. Other values can be used, but these are the preferred representations.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: TomLiotta</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/how-to-pass-zoned-decimal-parameter-to-a-program-from-the-command-line/#comment-108850</link>
		<dc:creator>TomLiotta</dc:creator>
		<pubDate>Wed, 27 Jun 2012 19:44:38 +0000</pubDate>
		<guid isPermaLink="false">http://itknowledgeexchange.techtarget.com/itanswers/how-to-pass-zoned-decimal-parameter-to-a-program-from-the-command-line/#comment-108850</guid>
		<description><![CDATA[Zoned-decimal is just a series of character digits. Because they are &quot;characters&quot;, they must be quoted to prevent the command prompter from passing them as packed digits. You must include leading zeros if the quoted value has fewer digits than the length of the field.As mentioned, negative values require some special handling to account for the negative sign.Tom]]></description>
		<content:encoded><![CDATA[<p>Zoned-decimal is just a series of character digits. Because they are &#8220;characters&#8221;, they must be quoted to prevent the command prompter from passing them as packed digits. You must include leading zeros if the quoted value has fewer digits than the length of the field.As mentioned, negative values require some special handling to account for the negative sign.Tom</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: philpl1jb</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/how-to-pass-zoned-decimal-parameter-to-a-program-from-the-command-line/#comment-108847</link>
		<dc:creator>philpl1jb</dc:creator>
		<pubDate>Wed, 27 Jun 2012 14:28:27 +0000</pubDate>
		<guid isPermaLink="false">http://itknowledgeexchange.techtarget.com/itanswers/how-to-pass-zoned-decimal-parameter-to-a-program-from-the-command-line/#comment-108847</guid>
		<description><![CDATA[and &lt;STRONG&gt;&lt;EM&gt;call pgm parm(’0001′)&lt;/EM&gt;&lt;/STRONG&gt; would call pgm with&#160;a zoned (4,2)&#160;value of .01
but negative values ....]]></description>
		<content:encoded><![CDATA[<p>and <strong><em>call pgm parm(’0001′)</em></strong> would call pgm with&nbsp;a zoned (4,2)&nbsp;value of .01<br />
but negative values &#8230;.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: BigKat</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/how-to-pass-zoned-decimal-parameter-to-a-program-from-the-command-line/#comment-108840</link>
		<dc:creator>BigKat</dc:creator>
		<pubDate>Wed, 27 Jun 2012 11:41:50 +0000</pubDate>
		<guid isPermaLink="false">http://itknowledgeexchange.techtarget.com/itanswers/how-to-pass-zoned-decimal-parameter-to-a-program-from-the-command-line/#comment-108840</guid>
		<description><![CDATA[just put quotes around it and include any leading zeros
&lt;EM&gt;&lt;STRONG&gt;call pgm parm(&#039;0001&#039;)&lt;/STRONG&gt;&lt;/EM&gt; would call pgm with&#160;a zoned (4,0)&#160;value of 1.]]></description>
		<content:encoded><![CDATA[<p>just put quotes around it and include any leading zeros<br />
<em><strong>call pgm parm(&#8217;0001&#8242;)</strong></em> would call pgm with&nbsp;a zoned (4,0)&nbsp;value of 1.</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/10 queries in 0.026 seconds using memcached
Object Caching 309/315 objects using memcached

Served from: itknowledgeexchange.techtarget.com @ 2013-05-26 07:10:37 -->