<?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 how to define variable name in New SAS User</title>
    <link>https://communities.sas.com/t5/New-SAS-User/how-to-define-variable-name/m-p/618977#M19312</link>
    <description>&lt;P&gt;Hello all,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My data including variable SEX(Female and Male), variable WHITE(White and Not White), But in my table, I just need Male(N(%)) and White(N(%), how can I write my codes, like this:&lt;/P&gt;&lt;P&gt;if SEX=Female then delete;&lt;/P&gt;&lt;P&gt;if WHITE=Not White then delete;&lt;/P&gt;&lt;P&gt;Are there some problems with this codes? Thanks.&lt;/P&gt;</description>
    <pubDate>Tue, 21 Jan 2020 21:52:31 GMT</pubDate>
    <dc:creator>peiy5920</dc:creator>
    <dc:date>2020-01-21T21:52:31Z</dc:date>
    <item>
      <title>how to define variable name</title>
      <link>https://communities.sas.com/t5/New-SAS-User/how-to-define-variable-name/m-p/618977#M19312</link>
      <description>&lt;P&gt;Hello all,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My data including variable SEX(Female and Male), variable WHITE(White and Not White), But in my table, I just need Male(N(%)) and White(N(%), how can I write my codes, like this:&lt;/P&gt;&lt;P&gt;if SEX=Female then delete;&lt;/P&gt;&lt;P&gt;if WHITE=Not White then delete;&lt;/P&gt;&lt;P&gt;Are there some problems with this codes? Thanks.&lt;/P&gt;</description>
      <pubDate>Tue, 21 Jan 2020 21:52:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/how-to-define-variable-name/m-p/618977#M19312</guid>
      <dc:creator>peiy5920</dc:creator>
      <dc:date>2020-01-21T21:52:31Z</dc:date>
    </item>
    <item>
      <title>Re: how to define variable name</title>
      <link>https://communities.sas.com/t5/New-SAS-User/how-to-define-variable-name/m-p/618981#M19313</link>
      <description>&lt;P&gt;You could consider making it more easily readable with a &lt;STRONG&gt;&lt;EM&gt;subsetting-if&lt;/EM&gt;&lt;/STRONG&gt; statement i.e&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data want;
 set have;
 if white='White' and sex='Male';
run;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;/*or&amp;nbsp; Using Where */&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;where white='White' and sex='Male';&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 21 Jan 2020 22:01:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/how-to-define-variable-name/m-p/618981#M19313</guid>
      <dc:creator>novinosrin</dc:creator>
      <dc:date>2020-01-21T22:01:55Z</dc:date>
    </item>
  </channel>
</rss>

