<?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 Sas numerical format restriction in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Sas-numerical-format-restriction/m-p/864248#M341325</link>
    <description>If i special format as 17.2 on input statement, can sas read in a different format say 17.4?&lt;BR /&gt;&lt;BR /&gt;I know if i dont specify it reads in any number</description>
    <pubDate>Wed, 15 Mar 2023 11:51:41 GMT</pubDate>
    <dc:creator>HeatherNewton</dc:creator>
    <dc:date>2023-03-15T11:51:41Z</dc:date>
    <item>
      <title>Sas numerical format restriction</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Sas-numerical-format-restriction/m-p/864248#M341325</link>
      <description>If i special format as 17.2 on input statement, can sas read in a different format say 17.4?&lt;BR /&gt;&lt;BR /&gt;I know if i dont specify it reads in any number</description>
      <pubDate>Wed, 15 Mar 2023 11:51:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Sas-numerical-format-restriction/m-p/864248#M341325</guid>
      <dc:creator>HeatherNewton</dc:creator>
      <dc:date>2023-03-15T11:51:41Z</dc:date>
    </item>
    <item>
      <title>Re: Sas numerical format restriction</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Sas-numerical-format-restriction/m-p/864250#M341327</link>
      <description>&lt;P&gt;You could try it and find out yourself. &lt;A href="https://communities.sas.com/t5/SAS-Communities-Library/Maxims-of-Maximally-Efficient-SAS-Programmers/ta-p/352068" target="_self"&gt;Maxim 4&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 15 Mar 2023 11:59:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Sas-numerical-format-restriction/m-p/864250#M341327</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2023-03-15T11:59:28Z</dc:date>
    </item>
    <item>
      <title>Re: Sas numerical format restriction</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Sas-numerical-format-restriction/m-p/864260#M341335</link>
      <description>&lt;P&gt;Do as&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/10892"&gt;@PaigeMiller&lt;/a&gt;&amp;nbsp;said, but also test those 2 examples:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data test1;
 input x 17.2;
cards;
17.1
17.22
17.333
17.4444
17.55555
;
run;
proc print;
run;

data test2;
 input x 17.2;
cards;
171
1722
17333
174444
1755555
;
run;
proc print;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;and also see the doc:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://support.sas.com/documentation/cdl/en/leforinforref/64790/HTML/default/viewer.htm#n14sqpf1cubqknn1vmkzkp1oph87.htm" target="_blank"&gt;w.d Informat :: SAS(R) 9.4 Formats and Informats: Reference&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Bart&lt;/P&gt;</description>
      <pubDate>Wed, 15 Mar 2023 12:27:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Sas-numerical-format-restriction/m-p/864260#M341335</guid>
      <dc:creator>yabwon</dc:creator>
      <dc:date>2023-03-15T12:27:39Z</dc:date>
    </item>
    <item>
      <title>Re: Sas numerical format restriction</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Sas-numerical-format-restriction/m-p/864269#M341339</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/416388"&gt;@HeatherNewton&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;If i special format as 17.2 on input statement, can sas read in a different format say 17.4?&lt;BR /&gt;&lt;BR /&gt;I know if i dont specify it reads in any number&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&lt;STRONG&gt;You cannot use any FORMAT with an INPUT statement.&lt;/STRONG&gt;&amp;nbsp; You can only use an INFORMAT.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Normally you never want to include a decimal place value on an informat because that means that SAS will insert an implied decimal point when the string does not have one.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The difference between 17.2 and 17.4 is where SAS will place the decimal point when the string does no contain one.&lt;/P&gt;
&lt;P&gt;With 2 implied decimal places a string like '123456' will become the number 1234.56 but with 4 implied decimal places it will become 12.3456 instead.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;So the proper informat to use when the values are 17 bytes long and did not have the decimal point purposely removed would be 17. with no number after the period.&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 15 Mar 2023 13:17:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Sas-numerical-format-restriction/m-p/864269#M341339</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2023-03-15T13:17:54Z</dc:date>
    </item>
  </channel>
</rss>

