<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Issue with larghe PD fields in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Issue-with-larghe-PD-fields/m-p/336322#M76231</link>
    <description>&lt;P&gt;These fields are defined in COBOL as PIC S9(13)V999 and the maximum number I could have in this field would be 9999999999999.999 and in hex it looks like this:&lt;/P&gt;&lt;P&gt;099999999&lt;BR /&gt;99999999C&lt;/P&gt;&lt;P&gt;and it gets converted to this:&lt;/P&gt;&lt;P&gt;099999998&lt;BR /&gt;99999999C&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I do manipulate other fields to get my desired results, and then I use this file and compare it to my input file to get a file of differences and these fields that are getting the left most byte converted to Hex '8C' from hex '9C' are throwing a monkey wrench into that process because they shouldn't be different.&lt;/P&gt;&lt;P&gt;So it's not really the accuacy issue, it'd a matter of the contents of the input files has been altered in the outout file that's causing the grief. One good thing is that I can edit the output file after I run my SAS job to change all occuances of Hex '8C' to Hex '9C' and I should be fine to run the compare. I just wanted to know why and could I do something to avoid getting this result.&lt;/P&gt;</description>
    <pubDate>Mon, 27 Feb 2017 19:49:38 GMT</pubDate>
    <dc:creator>JohnDawson</dc:creator>
    <dc:date>2017-02-27T19:49:38Z</dc:date>
    <item>
      <title>Issue with larghe PD fields</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Issue-with-larghe-PD-fields/m-p/336267#M76199</link>
      <description>&lt;P&gt;I have defined an input field on my input file in SAS as @243&amp;nbsp; TIER4MAX&amp;nbsp;&amp;nbsp; PD9.3&amp;nbsp;This field was created by a COBOL modules that had a PIC clause as PIC S9(13)V999 COMP-3. The SAS module simply read in the data and put it into a SAS dataset with no manipulation. The input value looked like this:&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp;rrrrrrrærrrrrrrræ rrræ rrrrrrrærrrrrrrrærrrræ&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;0999999999999999990999909999999999999999999999&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;99999999C99999999C9999C99999999C99999999C9999C&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We use SAS V9.4&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When I run the SAS code my output looks like this:&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp;rrrrrrrðrrrrrrrræ rrræ rrrrrrrðrrrrrrrrærrrræ&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;09999999&lt;FONT color="#000000"&gt;8&lt;/FONT&gt;9999999990999909999999899999999999999&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;99999999C99999999C9999C99999999C99999999C9999C&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Notice that first and fourth field had the last byte changed from Hex '9C' to Hex '8C' . Fields 1, 2, 4 &amp;amp; 5 are defined as PD9.3 while fields 3 &amp;amp; 6 are defined as PD5.3. Fields that are defined with PD9.3 and contained all 9's stayed the same, but the fields that contained all 9's except for the left most bit had the bit before the sign changed to Hex '8C'. Field 3 contained Hex ;099999999C and it stayed the same on the output.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So does anyone know why Hex '9C' was replaced with Hex '8C' on the 2 larger fileds, and how can this conversion be prevented.&lt;/P&gt;</description>
      <pubDate>Mon, 27 Feb 2017 17:19:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Issue-with-larghe-PD-fields/m-p/336267#M76199</guid>
      <dc:creator>JohnDawson</dc:creator>
      <dc:date>2017-02-27T17:19:29Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with larghe PD fields</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Issue-with-larghe-PD-fields/m-p/336268#M76200</link>
      <description>&lt;P&gt;How are you producing the hexadecimal output content?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you just issue something a statement like&amp;nbsp; "put tiermax=best32.6", do you see the intended value?&lt;/P&gt;</description>
      <pubDate>Mon, 27 Feb 2017 17:29:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Issue-with-larghe-PD-fields/m-p/336268#M76200</guid>
      <dc:creator>mkeintz</dc:creator>
      <dc:date>2017-02-27T17:29:29Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with larghe PD fields</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Issue-with-larghe-PD-fields/m-p/336272#M76203</link>
      <description>&lt;P&gt;Have you tried with a different informat? Different ones have to be used if you're inputing a file from a different operating system. See:&amp;nbsp;&lt;A href="http://support.sas.com/kb/56/654.html" target="_blank"&gt;http://support.sas.com/kb/56/654.html&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Art, CEO, AnalystFinder.com&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 27 Feb 2017 17:36:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Issue-with-larghe-PD-fields/m-p/336272#M76203</guid>
      <dc:creator>art297</dc:creator>
      <dc:date>2017-02-27T17:36:52Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with larghe PD fields</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Issue-with-larghe-PD-fields/m-p/336279#M76205</link>
      <description>&lt;P&gt;Packed decimal with a length of 9 has 17 decimal digits. That are more digits than can be stored in 8-byte real format with reliable precision.&lt;/P&gt;
&lt;P&gt;See&amp;nbsp;&lt;A href="http://support.sas.com/documentation/cdl/en/lrcon/69852/HTML/default/viewer.htm#p0ji1unv6thm0dn1gp4t01a1u0g6.htm" target="_blank"&gt;http://support.sas.com/documentation/cdl/en/lrcon/69852/HTML/default/viewer.htm#p0ji1unv6thm0dn1gp4t01a1u0g6.htm&lt;/A&gt;&amp;nbsp;for details.&lt;/P&gt;</description>
      <pubDate>Mon, 27 Feb 2017 17:55:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Issue-with-larghe-PD-fields/m-p/336279#M76205</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2017-02-27T17:55:55Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with larghe PD fields</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Issue-with-larghe-PD-fields/m-p/336299#M76219</link>
      <description>&lt;P&gt;When I changed the format on the put statement from @243&amp;nbsp; TIER4MAX&amp;nbsp;&amp;nbsp; PD9.3&amp;nbsp; to&amp;nbsp; @243&amp;nbsp; TIER4MAX&amp;nbsp; best32.6&amp;nbsp;&amp;nbsp; it changed the outout to spaces, so that didn't work&lt;/P&gt;</description>
      <pubDate>Mon, 27 Feb 2017 18:54:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Issue-with-larghe-PD-fields/m-p/336299#M76219</guid>
      <dc:creator>JohnDawson</dc:creator>
      <dc:date>2017-02-27T18:54:01Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with larghe PD fields</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Issue-with-larghe-PD-fields/m-p/336312#M76226</link>
      <description>&lt;P&gt;OK, so it looks like I'm out of luck due to a restriction in SAS. Is that correct?&lt;/P&gt;</description>
      <pubDate>Mon, 27 Feb 2017 19:25:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Issue-with-larghe-PD-fields/m-p/336312#M76226</guid>
      <dc:creator>JohnDawson</dc:creator>
      <dc:date>2017-02-27T19:25:25Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with larghe PD fields</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Issue-with-larghe-PD-fields/m-p/336314#M76227</link>
      <description>&lt;P&gt;When all possible digits are used, you will have an inaccuracy in the last digit. With 3 digits after the decimal point, this happens in the 1/1000 range. Which values do you have that need total accuracy down there?&lt;/P&gt;</description>
      <pubDate>Mon, 27 Feb 2017 19:30:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Issue-with-larghe-PD-fields/m-p/336314#M76227</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2017-02-27T19:30:30Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with larghe PD fields</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Issue-with-larghe-PD-fields/m-p/336322#M76231</link>
      <description>&lt;P&gt;These fields are defined in COBOL as PIC S9(13)V999 and the maximum number I could have in this field would be 9999999999999.999 and in hex it looks like this:&lt;/P&gt;&lt;P&gt;099999999&lt;BR /&gt;99999999C&lt;/P&gt;&lt;P&gt;and it gets converted to this:&lt;/P&gt;&lt;P&gt;099999998&lt;BR /&gt;99999999C&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I do manipulate other fields to get my desired results, and then I use this file and compare it to my input file to get a file of differences and these fields that are getting the left most byte converted to Hex '8C' from hex '9C' are throwing a monkey wrench into that process because they shouldn't be different.&lt;/P&gt;&lt;P&gt;So it's not really the accuacy issue, it'd a matter of the contents of the input files has been altered in the outout file that's causing the grief. One good thing is that I can edit the output file after I run my SAS job to change all occuances of Hex '8C' to Hex '9C' and I should be fine to run the compare. I just wanted to know why and could I do something to avoid getting this result.&lt;/P&gt;</description>
      <pubDate>Mon, 27 Feb 2017 19:49:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Issue-with-larghe-PD-fields/m-p/336322#M76231</guid>
      <dc:creator>JohnDawson</dc:creator>
      <dc:date>2017-02-27T19:49:38Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with larghe PD fields</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Issue-with-larghe-PD-fields/m-p/336327#M76233</link>
      <description>&lt;P&gt;The accuracy problem will only appear with sufficiently large numbers. Run a proc means on real data to get the maximum number that actually appears in the data.&lt;/P&gt;</description>
      <pubDate>Mon, 27 Feb 2017 20:06:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Issue-with-larghe-PD-fields/m-p/336327#M76233</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2017-02-27T20:06:55Z</dc:date>
    </item>
  </channel>
</rss>

