<?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: Numeric and Character Observations under a Variable in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Numeric-and-Character-Observations-under-a-Variable/m-p/152260#M40044</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What do you want in place of NONE?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 03 Feb 2015 23:53:40 GMT</pubDate>
    <dc:creator>Reeza</dc:creator>
    <dc:date>2015-02-03T23:53:40Z</dc:date>
    <item>
      <title>Numeric and Character Observations under a Variable</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Numeric-and-Character-Observations-under-a-Variable/m-p/152259#M40043</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a data set with a variable called Number. Most of the observations have numbers, but those that are missing are "None". When I state that Number is numeric, the SAS Log freaks out saying "Invalid data for Number" each time it encounters "None". When I have Number as a character variable, I can't use any math functions (sum, etc.). How do I tell SAS how to read this variable without the zillions of log errors?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Derek&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Feb 2015 23:33:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Numeric-and-Character-Observations-under-a-Variable/m-p/152259#M40043</guid>
      <dc:creator>dereck255</dc:creator>
      <dc:date>2015-02-03T23:33:22Z</dc:date>
    </item>
    <item>
      <title>Re: Numeric and Character Observations under a Variable</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Numeric-and-Character-Observations-under-a-Variable/m-p/152260#M40044</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What do you want in place of NONE?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Feb 2015 23:53:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Numeric-and-Character-Observations-under-a-Variable/m-p/152260#M40044</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2015-02-03T23:53:40Z</dc:date>
    </item>
    <item>
      <title>Re: Numeric and Character Observations under a Variable</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Numeric-and-Character-Observations-under-a-Variable/m-p/152261#M40045</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;A zero would be fine.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Feb 2015 23:55:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Numeric-and-Character-Observations-under-a-Variable/m-p/152261#M40045</guid>
      <dc:creator>dereck255</dc:creator>
      <dc:date>2015-02-03T23:55:34Z</dc:date>
    </item>
    <item>
      <title>Re: Numeric and Character Observations under a Variable</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Numeric-and-Character-Observations-under-a-Variable/m-p/152262#M40046</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;"&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px; background-color: #ffffff;"&gt;I have a data set ....",&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px; background-color: #ffffff;"&gt;What data set? is it SAS table or something else? Show some code and the log you mentioned.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Feb 2015 23:56:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Numeric-and-Character-Observations-under-a-Variable/m-p/152262#M40046</guid>
      <dc:creator>Haikuo</dc:creator>
      <dc:date>2015-02-03T23:56:17Z</dc:date>
    </item>
    <item>
      <title>Re: Numeric and Character Observations under a Variable</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Numeric-and-Character-Observations-under-a-Variable/m-p/152263#M40047</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;LOL. It's an excel file. I have no trouble getting the file into SAS - I use an input statement. Can't show code since it has private info.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Feb 2015 00:09:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Numeric-and-Character-Observations-under-a-Variable/m-p/152263#M40047</guid>
      <dc:creator>dereck255</dc:creator>
      <dc:date>2015-02-04T00:09:51Z</dc:date>
    </item>
    <item>
      <title>Re: Numeric and Character Observations under a Variable</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Numeric-and-Character-Observations-under-a-Variable/m-p/152264#M40048</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;try:&lt;/P&gt;&lt;P&gt;input Number ??yournumberformat.;&lt;/P&gt;&lt;P&gt;This will give you . (missing) when 'None',&amp;nbsp; and the error log will be suppressed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if you want it to be zero instead,&amp;nbsp; you can test _infile_ first, then decide whether to input normally or assign zero value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Good luck,&lt;/P&gt;&lt;P&gt;Haikuo&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Feb 2015 00:25:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Numeric-and-Character-Observations-under-a-Variable/m-p/152264#M40048</guid>
      <dc:creator>Haikuo</dc:creator>
      <dc:date>2015-02-04T00:25:18Z</dc:date>
    </item>
    <item>
      <title>Re: Numeric and Character Observations under a Variable</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Numeric-and-Character-Observations-under-a-Variable/m-p/152265#M40049</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try something like this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px; color: #000080;"&gt;&lt;STRONG&gt;proc&lt;/STRONG&gt;&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;STRONG&gt;format&lt;/STRONG&gt;&lt;SPAN style="color: #000000;"&gt; ;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px;"&gt;&lt;SPAN style="color: #0000ff;"&gt;invalue&lt;/SPAN&gt; none_zero &lt;SPAN style="color: #800080;"&gt;'None'&lt;/SPAN&gt; = &lt;SPAN style="color: #008080;"&gt;&lt;STRONG&gt;0&lt;/STRONG&gt;&lt;/SPAN&gt; other = [&lt;SPAN style="color: #008080;"&gt;&lt;STRONG&gt;12.&lt;/STRONG&gt;&lt;/SPAN&gt;] ;&lt;/P&gt;&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px; color: #000080;"&gt;&lt;STRONG&gt;run&lt;/STRONG&gt;&lt;SPAN style="color: #000000;"&gt; ;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px;"&gt;&lt;/P&gt;&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px; color: #0000ff;"&gt;&lt;SPAN style="color: #000080;"&gt;&lt;STRONG&gt;data&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;_null_&lt;SPAN style="color: #000000;"&gt; ;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px; color: #008080;"&gt;&lt;SPAN style="color: #0000ff;"&gt;input&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; val &lt;/SPAN&gt;none_zero.&lt;SPAN style="color: #000000;"&gt; ;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px;"&gt;&lt;SPAN style="color: #0000ff;"&gt;put&lt;/SPAN&gt; val= ;&lt;/P&gt;&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px; color: #0000ff;"&gt;cards&lt;SPAN style="color: #000000;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px;"&gt;123&lt;/P&gt;&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px;"&gt;None&lt;/P&gt;&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px;"&gt;;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Feb 2015 22:40:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Numeric-and-Character-Observations-under-a-Variable/m-p/152265#M40049</guid>
      <dc:creator>Howles</dc:creator>
      <dc:date>2015-02-04T22:40:33Z</dc:date>
    </item>
  </channel>
</rss>

