<?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 Reading a long floating point value in z/OS environment in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Reading-a-long-floating-point-value-in-z-OS-environment/m-p/88694#M18865</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I want to read a large floating point number from fixed position file and write it as the same value without rounding it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example:&lt;/P&gt;&lt;P&gt;Number starts from position 20 in the file. And the value is 999999999999.999999&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried reading this value as &lt;/P&gt;&lt;P&gt;INPUT @20 num 19.6;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;But the output it shows with or without the format 19.6 as :&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;1E12&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 19 Sep 2013 19:23:56 GMT</pubDate>
    <dc:creator>Sanyam</dc:creator>
    <dc:date>2013-09-19T19:23:56Z</dc:date>
    <item>
      <title>Reading a long floating point value in z/OS environment</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Reading-a-long-floating-point-value-in-z-OS-environment/m-p/88694#M18865</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I want to read a large floating point number from fixed position file and write it as the same value without rounding it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example:&lt;/P&gt;&lt;P&gt;Number starts from position 20 in the file. And the value is 999999999999.999999&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried reading this value as &lt;/P&gt;&lt;P&gt;INPUT @20 num 19.6;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;But the output it shows with or without the format 19.6 as :&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;1E12&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Sep 2013 19:23:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Reading-a-long-floating-point-value-in-z-OS-environment/m-p/88694#M18865</guid>
      <dc:creator>Sanyam</dc:creator>
      <dc:date>2013-09-19T19:23:56Z</dc:date>
    </item>
    <item>
      <title>Re: Reading a long floating point value in z/OS environment</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Reading-a-long-floating-point-value-in-z-OS-environment/m-p/88695#M18866</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;SAS stores numbers in 8 bytes which can accurately hold around 16 digits including decimal places. Since SAS cannot precisely hold the 19 digits you are after you end up getting numbers slightly different to what you read. Try format 16.2. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Sep 2013 20:09:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Reading-a-long-floating-point-value-in-z-OS-environment/m-p/88695#M18866</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2013-09-19T20:09:28Z</dc:date>
    </item>
  </channel>
</rss>

