<?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: Character values see in numeric variable in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Character-values-see-in-numeric-variable/m-p/580790#M165010</link>
    <description>&lt;P&gt;In addition to the normal missing value SAS supports 27 special missing values which you represent in code as ._, .A, .b,&amp;nbsp; up to&amp;nbsp; .z.&lt;/P&gt;
&lt;P&gt;You can use them to make different categories of missing values.&amp;nbsp; For example if you had a survey question you might use one to mean question not asked, another to mean respondent refused to answer, another to mean respondent doesn't know the answer, etc.&lt;/P&gt;</description>
    <pubDate>Tue, 13 Aug 2019 12:58:04 GMT</pubDate>
    <dc:creator>Tom</dc:creator>
    <dc:date>2019-08-13T12:58:04Z</dc:date>
    <item>
      <title>Character values see in numeric variable</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Character-values-see-in-numeric-variable/m-p/580782#M165004</link>
      <description>&lt;P&gt;When I open a SAS dataset, there is a numeric variable (var1) which shows character values&amp;nbsp; like C, M when opened&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Also,&lt;/P&gt;
&lt;P&gt;There is a code that queries that dataset and that numeric variable var1 as below&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;data test;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; set myds;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; if var1 = .C then newvar=10;&lt;/P&gt;
&lt;P&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Proc contents show that there is no format applied on that column. That variable var1 is num 8.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;What does this .C mean and why are character variables shown in a numeric field?&lt;/P&gt;</description>
      <pubDate>Tue, 13 Aug 2019 12:43:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Character-values-see-in-numeric-variable/m-p/580782#M165004</guid>
      <dc:creator>Sanjay_M</dc:creator>
      <dc:date>2019-08-13T12:43:52Z</dc:date>
    </item>
    <item>
      <title>Re: Character values see in numeric variable</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Character-values-see-in-numeric-variable/m-p/580786#M165006</link>
      <description>&lt;P&gt;Please see the code below. SAS interprets .C, .A and such as missing values. However, they are missing as PROC FREQ reveals.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data test;
    a=.A;output;
    a=.;output;
    a=.B;output;
run;

data test2;
    set test;
    if a=.B then dummy=1;
    else dummy=0;
run;

proc freq data=test;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 13 Aug 2019 12:48:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Character-values-see-in-numeric-variable/m-p/580786#M165006</guid>
      <dc:creator>PeterClemmensen</dc:creator>
      <dc:date>2019-08-13T12:48:33Z</dc:date>
    </item>
    <item>
      <title>Re: Character values see in numeric variable</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Character-values-see-in-numeric-variable/m-p/580788#M165008</link>
      <description>&lt;P&gt;Thanks for the quick response.&lt;/P&gt;
&lt;P&gt;Is this a feature? why will we need Character missing values?&lt;/P&gt;
&lt;P&gt;It is pretty confusing&lt;/P&gt;</description>
      <pubDate>Tue, 13 Aug 2019 12:53:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Character-values-see-in-numeric-variable/m-p/580788#M165008</guid>
      <dc:creator>Sanjay_M</dc:creator>
      <dc:date>2019-08-13T12:53:21Z</dc:date>
    </item>
    <item>
      <title>Re: Character values see in numeric variable</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Character-values-see-in-numeric-variable/m-p/580790#M165010</link>
      <description>&lt;P&gt;In addition to the normal missing value SAS supports 27 special missing values which you represent in code as ._, .A, .b,&amp;nbsp; up to&amp;nbsp; .z.&lt;/P&gt;
&lt;P&gt;You can use them to make different categories of missing values.&amp;nbsp; For example if you had a survey question you might use one to mean question not asked, another to mean respondent refused to answer, another to mean respondent doesn't know the answer, etc.&lt;/P&gt;</description>
      <pubDate>Tue, 13 Aug 2019 12:58:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Character-values-see-in-numeric-variable/m-p/580790#M165010</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2019-08-13T12:58:04Z</dc:date>
    </item>
  </channel>
</rss>

