<?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: Getting missing numeric value(.) in gender when i am trying to create dataset ds1. in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Getting-missing-numeric-value-in-gender-when-i-am-trying-to/m-p/486597#M126638</link>
    <description>&lt;PRE&gt;data test.ds1;
  set test.ds;
  age=23;
  gender=M;
run;&lt;/PRE&gt;
&lt;P&gt;In this code, is there a variable called M in test.ds.&amp;nbsp; There isn't is there, what you are trying to do is set gender to the value of a string of characters, hence you need to enclose that string of characters within quotes either single or double:&lt;/P&gt;
&lt;PRE&gt;data test.ds1;
  set test.ds;
  age=23;
  gender="M";
run;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 14 Aug 2018 09:51:41 GMT</pubDate>
    <dc:creator>RW9</dc:creator>
    <dc:date>2018-08-14T09:51:41Z</dc:date>
    <item>
      <title>Getting missing numeric value(.) in gender when i am trying to create dataset ds1.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Getting-missing-numeric-value-in-gender-when-i-am-trying-to/m-p/486588#M126634</link>
      <description>&lt;P&gt;My code was this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;data test.ds1;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;set test.ds;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;age=23;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;gender=M;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;run;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;and my log window is showing this message:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV class="sasNote"&gt;&lt;STRONG&gt;NOTE: Variable M is uninitialized.&lt;/STRONG&gt;&lt;/DIV&gt;&lt;DIV class="sasNote"&gt;&lt;STRONG&gt;NOTE: There were 1 observations read from the data set TEST.DS.&lt;/STRONG&gt;&lt;/DIV&gt;&lt;DIV class="sasNote"&gt;&lt;STRONG&gt;NOTE: The data set TEST.DS1 has 1 observations and 4 variables.&lt;/STRONG&gt;&lt;/DIV&gt;&lt;DIV class="sasNote"&gt;&lt;STRONG&gt;NOTE: DATA statement used (Total process time):&lt;/STRONG&gt;&lt;/DIV&gt;&lt;DIV class="sasNote"&gt;&lt;STRONG&gt;real time 0.23 seconds&lt;/STRONG&gt;&lt;/DIV&gt;&lt;DIV class="sasNote"&gt;&lt;STRONG&gt;cpu time 0.14 seconds&lt;/STRONG&gt;&lt;/DIV&gt;&lt;DIV class="sasNote"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="sasNote"&gt;Can anyone please clarify where i am wrong?&lt;/DIV&gt;</description>
      <pubDate>Tue, 14 Aug 2018 09:30:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Getting-missing-numeric-value-in-gender-when-i-am-trying-to/m-p/486588#M126634</guid>
      <dc:creator>Ananyayadav</dc:creator>
      <dc:date>2018-08-14T09:30:51Z</dc:date>
    </item>
    <item>
      <title>Re: Getting missing numeric value(.) in gender when i am trying to create dataset ds1.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Getting-missing-numeric-value-in-gender-when-i-am-trying-to/m-p/486597#M126638</link>
      <description>&lt;PRE&gt;data test.ds1;
  set test.ds;
  age=23;
  gender=M;
run;&lt;/PRE&gt;
&lt;P&gt;In this code, is there a variable called M in test.ds.&amp;nbsp; There isn't is there, what you are trying to do is set gender to the value of a string of characters, hence you need to enclose that string of characters within quotes either single or double:&lt;/P&gt;
&lt;PRE&gt;data test.ds1;
  set test.ds;
  age=23;
  gender="M";
run;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 14 Aug 2018 09:51:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Getting-missing-numeric-value-in-gender-when-i-am-trying-to/m-p/486597#M126638</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2018-08-14T09:51:41Z</dc:date>
    </item>
  </channel>
</rss>

