<?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: one observation fails to convert in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/one-observation-fails-to-convert/m-p/753851#M237666</link>
    <description>&lt;P&gt;Notice the NOTE you get.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;After b=., there is a single blank.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;After _ERROR_=1, there is a single blank.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;But after&amp;nbsp;&lt;SPAN&gt;E=3004708748, it looks like you have two blanks.&amp;nbsp; Actually, the first of those is not a blank.&amp;nbsp; It is some unprintable character, such as a tab character.&amp;nbsp; It looks like a blank, but it's not, and whatever it is it needs to be removed.&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 13 Jul 2021 18:19:10 GMT</pubDate>
    <dc:creator>Astounding</dc:creator>
    <dc:date>2021-07-13T18:19:10Z</dc:date>
    <item>
      <title>one observation fails to convert</title>
      <link>https://communities.sas.com/t5/SAS-Programming/one-observation-fails-to-convert/m-p/753849#M237665</link>
      <description>&lt;P&gt;I have about 30 values in a variable I want to convert from character to numeric.&amp;nbsp; &amp;nbsp; It seems to work for all but one but I'm not sure why I get an error message on one.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;27 data a;&lt;BR /&gt;28 set Tbl1(keep=e);&lt;BR /&gt;29 put e;&lt;BR /&gt;30 run;&lt;/P&gt;&lt;P&gt;3015448605&lt;BR /&gt;3005949964&lt;BR /&gt;3008716173&lt;BR /&gt;2510592&lt;BR /&gt;3006525584&lt;BR /&gt;3012500679&lt;BR /&gt;3002806632&lt;BR /&gt;1222181&lt;BR /&gt;1810189&lt;BR /&gt;1940118&lt;BR /&gt;1000654629&lt;BR /&gt;3011948449&lt;BR /&gt;3000718852&lt;BR /&gt;1818977&lt;BR /&gt;3010477&lt;BR /&gt;3000209996&lt;BR /&gt;3004708748&amp;nbsp;&lt;BR /&gt;3015448605&lt;BR /&gt;1643045&lt;BR /&gt;3006316363&lt;BR /&gt;3011948449&lt;BR /&gt;2518760&lt;BR /&gt;1220423&lt;BR /&gt;3011286996&lt;BR /&gt;3001451441&lt;BR /&gt;3005949964&lt;BR /&gt;2 The SAS System 11:49 Tuesday, July 13, 2021&lt;/P&gt;&lt;P&gt;1000115571&lt;BR /&gt;2246315&lt;BR /&gt;1018495&lt;BR /&gt;3014937058&lt;BR /&gt;NOTE: There were 30 observations read from the data set WORK.TBL1.&lt;BR /&gt;NOTE: The data set WORK.A has 30 observations and 1 variables.&lt;BR /&gt;NOTE: DATA statement used (Total process time):&lt;BR /&gt;real time 0.01 seconds&lt;BR /&gt;cpu time 0.01 seconds&lt;/P&gt;&lt;P&gt;31&lt;BR /&gt;32 Data b;&lt;BR /&gt;33 set a;&lt;BR /&gt;34 b=input(e,11.);&lt;BR /&gt;35 run;&lt;/P&gt;&lt;P&gt;NOTE: Invalid argument to function INPUT at line 34 column 4.&lt;BR /&gt;E=3004708748&amp;nbsp; b=. _ERROR_=1 _N_=17&lt;BR /&gt;NOTE: Mathematical operations could not be performed at the following places. The results of the operations have been set to&lt;BR /&gt;missing values.&lt;BR /&gt;Each place is given by: (Number of times) at (Line):(Column).&lt;BR /&gt;1 at 34:4&lt;BR /&gt;NOTE: There were 30 observations read from the data set WORK.A.&lt;BR /&gt;NOTE: The data set WORK.B has 30 observations and 2 variables.&lt;BR /&gt;NOTE: DATA statement used (Total process time):&lt;BR /&gt;real time 0.00 seconds&lt;BR /&gt;cpu time 0.01 seconds&lt;/P&gt;</description>
      <pubDate>Tue, 13 Jul 2021 18:09:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/one-observation-fails-to-convert/m-p/753849#M237665</guid>
      <dc:creator>Batman</dc:creator>
      <dc:date>2021-07-13T18:09:36Z</dc:date>
    </item>
    <item>
      <title>Re: one observation fails to convert</title>
      <link>https://communities.sas.com/t5/SAS-Programming/one-observation-fails-to-convert/m-p/753851#M237666</link>
      <description>&lt;P&gt;Notice the NOTE you get.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;After b=., there is a single blank.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;After _ERROR_=1, there is a single blank.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;But after&amp;nbsp;&lt;SPAN&gt;E=3004708748, it looks like you have two blanks.&amp;nbsp; Actually, the first of those is not a blank.&amp;nbsp; It is some unprintable character, such as a tab character.&amp;nbsp; It looks like a blank, but it's not, and whatever it is it needs to be removed.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 13 Jul 2021 18:19:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/one-observation-fails-to-convert/m-p/753851#M237666</guid>
      <dc:creator>Astounding</dc:creator>
      <dc:date>2021-07-13T18:19:10Z</dc:date>
    </item>
    <item>
      <title>Re: one observation fails to convert</title>
      <link>https://communities.sas.com/t5/SAS-Programming/one-observation-fails-to-convert/m-p/753863#M237669</link>
      <description>&lt;P&gt;The last character in that invalid string is 'A0'x, not '20'x (space).&lt;/P&gt;
&lt;P&gt;Try removing it before trying to interpret it as a number.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;b=input(compress(e,'A0'x),32.);&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 13 Jul 2021 18:27:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/one-observation-fails-to-convert/m-p/753863#M237669</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2021-07-13T18:27:34Z</dc:date>
    </item>
  </channel>
</rss>

