<?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: pull specific year in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/pull-specific-year/m-p/66352#M18951</link>
    <description>Hm. write 2010 like this '2010' ?&lt;BR /&gt;
&lt;BR /&gt;
Sry. Not really good english &lt;span class="lia-unicode-emoji" title=":grinning_face_with_smiling_eyes:"&gt;😄&lt;/span&gt;</description>
    <pubDate>Tue, 17 May 2011 14:09:44 GMT</pubDate>
    <dc:creator>DanielKaiser</dc:creator>
    <dc:date>2011-05-17T14:09:44Z</dc:date>
    <item>
      <title>pull specific year</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/pull-specific-year/m-p/66346#M18945</link>
      <description>I have a table with the same field names but some of the data is from 2010 and some from 2009. How do I pull just the 2010 data into a new table?</description>
      <pubDate>Tue, 17 May 2011 13:12:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/pull-specific-year/m-p/66346#M18945</guid>
      <dc:creator>tjonas</dc:creator>
      <dc:date>2011-05-17T13:12:13Z</dc:date>
    </item>
    <item>
      <title>Re: pull specific year</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/pull-specific-year/m-p/66347#M18946</link>
      <description>Have you tried the PROC SQL with a WHERE Statement?</description>
      <pubDate>Tue, 17 May 2011 13:15:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/pull-specific-year/m-p/66347#M18946</guid>
      <dc:creator>DanielKaiser</dc:creator>
      <dc:date>2011-05-17T13:15:02Z</dc:date>
    </item>
    <item>
      <title>Re: pull specific year</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/pull-specific-year/m-p/66348#M18947</link>
      <description>I'm a new sas user. Not sure how to use the sql.</description>
      <pubDate>Tue, 17 May 2011 13:18:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/pull-specific-year/m-p/66348#M18947</guid>
      <dc:creator>tjonas</dc:creator>
      <dc:date>2011-05-17T13:18:39Z</dc:date>
    </item>
    <item>
      <title>Re: pull specific year</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/pull-specific-year/m-p/66349#M18948</link>
      <description>Ok. Have a look at this.&lt;BR /&gt;
&lt;BR /&gt;
&lt;A href="http://www2.sas.com/proceedings/sugi27/p191-27.pdf" target="_blank"&gt;http://www2.sas.com/proceedings/sugi27/p191-27.pdf&lt;/A&gt;&lt;BR /&gt;
&lt;BR /&gt;
If it doesnt help come back and we will go on &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;</description>
      <pubDate>Tue, 17 May 2011 13:22:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/pull-specific-year/m-p/66349#M18948</guid>
      <dc:creator>DanielKaiser</dc:creator>
      <dc:date>2011-05-17T13:22:29Z</dc:date>
    </item>
    <item>
      <title>Re: pull specific year</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/pull-specific-year/m-p/66350#M18949</link>
      <description>PROC SQL;&lt;BR /&gt;
CREATE TABLE DESTINATION.TABLE AS &lt;BR /&gt;
SELECT * /* Take all Variables from your source table otherwise you can list all var. you want to take */&lt;BR /&gt;
FROM SOURCE.TABLE&lt;BR /&gt;
WHERE YEARVARIABLE = 2010;&lt;BR /&gt;
QUIT;&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
Hope this works. Haven't worked with SQL so much.</description>
      <pubDate>Tue, 17 May 2011 13:27:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/pull-specific-year/m-p/66350#M18949</guid>
      <dc:creator>DanielKaiser</dc:creator>
      <dc:date>2011-05-17T13:27:18Z</dc:date>
    </item>
    <item>
      <title>Re: pull specific year</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/pull-specific-year/m-p/66351#M18950</link>
      <description>Has this error:&lt;BR /&gt;
ERROR: Expression using equals (=) has components that are of different data types</description>
      <pubDate>Tue, 17 May 2011 13:56:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/pull-specific-year/m-p/66351#M18950</guid>
      <dc:creator>tjonas</dc:creator>
      <dc:date>2011-05-17T13:56:59Z</dc:date>
    </item>
    <item>
      <title>Re: pull specific year</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/pull-specific-year/m-p/66352#M18951</link>
      <description>Hm. write 2010 like this '2010' ?&lt;BR /&gt;
&lt;BR /&gt;
Sry. Not really good english &lt;span class="lia-unicode-emoji" title=":grinning_face_with_smiling_eyes:"&gt;😄&lt;/span&gt;</description>
      <pubDate>Tue, 17 May 2011 14:09:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/pull-specific-year/m-p/66352#M18951</guid>
      <dc:creator>DanielKaiser</dc:creator>
      <dc:date>2011-05-17T14:09:44Z</dc:date>
    </item>
    <item>
      <title>Re: pull specific year</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/pull-specific-year/m-p/66353#M18952</link>
      <description>Hello Hjonas,&lt;BR /&gt;
&lt;BR /&gt;
Try this:&lt;BR /&gt;
[pre]&lt;BR /&gt;
data r;&lt;BR /&gt;
  set i;&lt;BR /&gt;
  where YEAR(date)=2010;&lt;BR /&gt;
run;&lt;BR /&gt;
[/pre]&lt;BR /&gt;
If it will not help give us and example of your data.&lt;BR /&gt;
Sincerely, &lt;BR /&gt;
SPR</description>
      <pubDate>Tue, 17 May 2011 14:15:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/pull-specific-year/m-p/66353#M18952</guid>
      <dc:creator>SPR</dc:creator>
      <dc:date>2011-05-17T14:15:44Z</dc:date>
    </item>
    <item>
      <title>Re: pull specific year</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/pull-specific-year/m-p/66354#M18953</link>
      <description>Work. thanks.</description>
      <pubDate>Tue, 17 May 2011 15:50:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/pull-specific-year/m-p/66354#M18953</guid>
      <dc:creator>tjonas</dc:creator>
      <dc:date>2011-05-17T15:50:40Z</dc:date>
    </item>
  </channel>
</rss>

