<?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: drop a variable in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/drop-a-variable/m-p/264663#M51951</link>
    <description>&lt;P&gt;SAS uses an IF statement to remove observations.&amp;nbsp; You could add either of these at the end of your DATA step (and possibly other similar statements):&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;if wkswork1 &amp;gt; 0;&lt;/P&gt;
&lt;P&gt;if incwage &amp;gt; 0;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It's up to you to decide which variables to use, and what conditions will select the proper observations.&lt;/P&gt;</description>
    <pubDate>Mon, 18 Apr 2016 20:17:59 GMT</pubDate>
    <dc:creator>Astounding</dc:creator>
    <dc:date>2016-04-18T20:17:59Z</dc:date>
    <item>
      <title>drop a variable</title>
      <link>https://communities.sas.com/t5/SAS-Programming/drop-a-variable/m-p/264659#M51949</link>
      <description>&lt;P&gt;Hello. I am doing an assignment in which I am supposed to extract and download CPS data from IPUMS site&amp;nbsp;&lt;/P&gt;&lt;P&gt;(&lt;A href="https://cps.ipums.org/cps-action/variables/group" target="_blank"&gt;https://cps.ipums.org/cps-action/variables/group&lt;/A&gt;). The variables in the data set are as follows:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Person Record&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;U&gt;Core Demographic Variables&lt;/U&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;AGE &lt;/STRONG&gt;Age&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;SEX &lt;/STRONG&gt;Gender&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;RACE&lt;/STRONG&gt; Race&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;MARST&lt;/STRONG&gt; Marital status&lt;/P&gt;&lt;P&gt;&lt;U&gt;Ethnicity/Nativity Variables&lt;/U&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;NATIVITY&lt;/STRONG&gt; Foreign birthplace or parentage&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;HISPAN&lt;/STRONG&gt; Hispanic origin&lt;/P&gt;&lt;P&gt;&lt;U&gt;Education Variables&lt;/U&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;EDUC99&lt;/STRONG&gt; Educational attainment, 1990 categories&lt;/P&gt;&lt;P&gt;&lt;U&gt;Work Variables&lt;/U&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;WKSWORK1&lt;/STRONG&gt; Weeks worked last year&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;UHRSWORK &lt;/STRONG&gt;Usual hours worked per week last year&lt;BR /&gt;&lt;STRONG&gt;UNION&lt;/STRONG&gt; Union status&lt;BR /&gt;&lt;STRONG&gt;PTWEEKS &lt;/STRONG&gt;Weeks working part time last year&lt;/P&gt;&lt;P&gt;&lt;U&gt;Income Variables&lt;/U&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;STRONG&gt;INCWAGE&lt;/STRONG&gt; Wage and salary income&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am having trouble executing a few steps that are required in the assignment. For example, it says to "drop observations for all non-wage earners." What would the code look like in order to do that?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 18 Apr 2016 20:07:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/drop-a-variable/m-p/264659#M51949</guid>
      <dc:creator>graingerad12</dc:creator>
      <dc:date>2016-04-18T20:07:51Z</dc:date>
    </item>
    <item>
      <title>Re: drop a variable</title>
      <link>https://communities.sas.com/t5/SAS-Programming/drop-a-variable/m-p/264663#M51951</link>
      <description>&lt;P&gt;SAS uses an IF statement to remove observations.&amp;nbsp; You could add either of these at the end of your DATA step (and possibly other similar statements):&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;if wkswork1 &amp;gt; 0;&lt;/P&gt;
&lt;P&gt;if incwage &amp;gt; 0;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It's up to you to decide which variables to use, and what conditions will select the proper observations.&lt;/P&gt;</description>
      <pubDate>Mon, 18 Apr 2016 20:17:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/drop-a-variable/m-p/264663#M51951</guid>
      <dc:creator>Astounding</dc:creator>
      <dc:date>2016-04-18T20:17:59Z</dc:date>
    </item>
  </channel>
</rss>

