<?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: reading character type numeric data with various decimal points in ODS and Base Reporting</title>
    <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/reading-character-type-numeric-data-with-various-decimal-points/m-p/626#M306</link>
    <description>also simply using the informat 8. or 12. or... might be ok. You should not read with a format with decimal points in. If there comes something with decimals it is read ok anyway.</description>
    <pubDate>Mon, 15 May 2006 16:35:13 GMT</pubDate>
    <dc:creator>deleted_user</dc:creator>
    <dc:date>2006-05-15T16:35:13Z</dc:date>
    <item>
      <title>reading character type numeric data with various decimal points</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/reading-character-type-numeric-data-with-various-decimal-points/m-p/624#M304</link>
      <description>Hi,&lt;BR /&gt;
&lt;BR /&gt;
I have a character field containing a mix of numeric and character data (ie. &amp;lt;20 0.555 4500 NA etc etc).&lt;BR /&gt;
&lt;BR /&gt;
I want to select only numeric data and compare with a similar field for comparison.  So I wrote:&lt;BR /&gt;
&lt;BR /&gt;
IF VERIFY(EDRESULT,' 0123456789.') NE 0 THEN ;&lt;BR /&gt;
ELSE DO;&lt;BR /&gt;
	IF INPUT(EDRESULT,8.2) &amp;lt; INPUT(EDLORNG,8.2) THEN EDFLAG = 'L';&lt;BR /&gt;
	ELSE IF INPUT(EDRESULT,8.2) &amp;gt; INPUT(EDHIRNG,8.2) THEN EDFLAG = 'H';&lt;BR /&gt;
END;&lt;BR /&gt;
&lt;BR /&gt;
But I'm not sure how format I should use to read in these data.  Since it contains different decimal points, I can't just use one format (8.2).  It gives a mix of correct and incorrect answers when I use this format.&lt;BR /&gt;
&lt;BR /&gt;
Any idea?&lt;BR /&gt;
&lt;BR /&gt;
Thank you.&lt;BR /&gt;
James</description>
      <pubDate>Thu, 11 May 2006 19:28:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/reading-character-type-numeric-data-with-various-decimal-points/m-p/624#M304</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2006-05-11T19:28:24Z</dc:date>
    </item>
    <item>
      <title>Re: reading character type numeric data with various decimal points</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/reading-character-type-numeric-data-with-various-decimal-points/m-p/625#M305</link>
      <description>Try using the BEST.  format which allows SAS to choose the format providing the most information about the value.</description>
      <pubDate>Fri, 12 May 2006 14:26:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/reading-character-type-numeric-data-with-various-decimal-points/m-p/625#M305</guid>
      <dc:creator>Chevell_sas</dc:creator>
      <dc:date>2006-05-12T14:26:53Z</dc:date>
    </item>
    <item>
      <title>Re: reading character type numeric data with various decimal points</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/reading-character-type-numeric-data-with-various-decimal-points/m-p/626#M306</link>
      <description>also simply using the informat 8. or 12. or... might be ok. You should not read with a format with decimal points in. If there comes something with decimals it is read ok anyway.</description>
      <pubDate>Mon, 15 May 2006 16:35:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/reading-character-type-numeric-data-with-various-decimal-points/m-p/626#M306</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2006-05-15T16:35:13Z</dc:date>
    </item>
  </channel>
</rss>

