<?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: Missing value for char variable-how to delete in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Missing-value-for-char-variable-how-to-delete/m-p/132086#M26934</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Could it also be that SAS is trying to convert the non-blank values in SIC?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 04 Nov 2013 16:38:16 GMT</pubDate>
    <dc:creator>jaredp</dc:creator>
    <dc:date>2013-11-04T16:38:16Z</dc:date>
    <item>
      <title>Missing value for char variable-how to delete</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Missing-value-for-char-variable-how-to-delete/m-p/132082#M26930</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a character variable SIC with some missing values. I used the script (see below) to eliminate those observations and the sas log says "Character values have been converted to numeric values at the places given by...:"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF SIC=" " THEN DELETE;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My question: do I need to convert SIC into numeric before using&amp;nbsp; IF SIC=" " THEN DELETE;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks,&lt;/P&gt;&lt;P&gt;Lan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 03 Nov 2013 02:19:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Missing-value-for-char-variable-how-to-delete/m-p/132082#M26930</guid>
      <dc:creator>LanMin</dc:creator>
      <dc:date>2013-11-03T02:19:29Z</dc:date>
    </item>
    <item>
      <title>Re: Missing value for char variable-how to delete</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Missing-value-for-char-variable-how-to-delete/m-p/132083#M26931</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If SIC really is a character variable then the note refers to another statement. - PG&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 03 Nov 2013 03:13:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Missing-value-for-char-variable-how-to-delete/m-p/132083#M26931</guid>
      <dc:creator>PGStats</dc:creator>
      <dc:date>2013-11-03T03:13:01Z</dc:date>
    </item>
    <item>
      <title>Re: Missing value for char variable-how to delete</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Missing-value-for-char-variable-how-to-delete/m-p/132084#M26932</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;i agree with PG,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The chances of note mentioned will arise when the sic variable data is character and you are considering it as numeric data while deleting. something like below &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if sic=. then delete. However as per your post, it is a character and you have used the right statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check if there are any other variable which is character and you are trying to delete those records considering the data is numeric.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Jagadish&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 03 Nov 2013 05:08:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Missing-value-for-char-variable-how-to-delete/m-p/132084#M26932</guid>
      <dc:creator>Jagadishkatam</dc:creator>
      <dc:date>2013-11-03T05:08:24Z</dc:date>
    </item>
    <item>
      <title>Re: Missing value for char variable-how to delete</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Missing-value-for-char-variable-how-to-delete/m-p/132085#M26933</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The log should have reported line numbers and number of times. Look at the code with that line number in the log.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'll bet you've done a numeric function such as adding, subtracting or mulitplying with a variable you thought was numeric but is actually character.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Nov 2013 15:29:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Missing-value-for-char-variable-how-to-delete/m-p/132085#M26933</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2013-11-04T15:29:10Z</dc:date>
    </item>
    <item>
      <title>Re: Missing value for char variable-how to delete</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Missing-value-for-char-variable-how-to-delete/m-p/132086#M26934</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Could it also be that SAS is trying to convert the non-blank values in SIC?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Nov 2013 16:38:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Missing-value-for-char-variable-how-to-delete/m-p/132086#M26934</guid>
      <dc:creator>jaredp</dc:creator>
      <dc:date>2013-11-04T16:38:16Z</dc:date>
    </item>
    <item>
      <title>Re: Missing value for char variable-how to delete</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Missing-value-for-char-variable-how-to-delete/m-p/132087#M26935</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks to everyone who replied to my post !!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SIC was numeric. my mistake. I changed the code&amp;nbsp; IF SIC=. THEN DELETE; it works.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Lan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Nov 2013 17:00:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Missing-value-for-char-variable-how-to-delete/m-p/132087#M26935</guid>
      <dc:creator>LanMin</dc:creator>
      <dc:date>2013-11-04T17:00:32Z</dc:date>
    </item>
  </channel>
</rss>

