<?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 Organizing Date's in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Organizing-Date-s/m-p/303237#M312423</link>
    <description>&lt;P&gt;I am struggling with organizing data by specific dates.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My dates are displayed in the data as "01/01/1995" through "12/31/2015". I need to drop the dates before 2000.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any suggestions?&lt;/P&gt;</description>
    <pubDate>Fri, 07 Oct 2016 17:48:30 GMT</pubDate>
    <dc:creator>Jordan1</dc:creator>
    <dc:date>2016-10-07T17:48:30Z</dc:date>
    <item>
      <title>Organizing Date's</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Organizing-Date-s/m-p/303237#M312423</link>
      <description>&lt;P&gt;I am struggling with organizing data by specific dates.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My dates are displayed in the data as "01/01/1995" through "12/31/2015". I need to drop the dates before 2000.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any suggestions?&lt;/P&gt;</description>
      <pubDate>Fri, 07 Oct 2016 17:48:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Organizing-Date-s/m-p/303237#M312423</guid>
      <dc:creator>Jordan1</dc:creator>
      <dc:date>2016-10-07T17:48:30Z</dc:date>
    </item>
    <item>
      <title>Re: Organizing Date's</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Organizing-Date-s/m-p/303243#M312424</link>
      <description>&lt;P&gt;There can be differences between what a variable contains, vs. how it displays. &amp;nbsp;To prepare, you will need to run a PROC CONTENTS on your data set and note the characteristics of the variable that holds the dates ... is it numeric or character, what is its length, does it have a format.&lt;/P&gt;</description>
      <pubDate>Fri, 07 Oct 2016 18:18:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Organizing-Date-s/m-p/303243#M312424</guid>
      <dc:creator>Astounding</dc:creator>
      <dc:date>2016-10-07T18:18:51Z</dc:date>
    </item>
    <item>
      <title>Re: Organizing Date's</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Organizing-Date-s/m-p/303402#M312425</link>
      <description>&lt;P&gt;Jordan&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Assuming your date column is numeric with a date format this is straightforward. Below is an example of deleting all rows from a copy of SASHELP.AIR where the year is earlier than 1955. You should simply follow the same method for your problem.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Chris&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data air;
	set sashelp.air;
run;

proc sql;
	delete from air
	where year(date) &amp;lt; 1955;
quit;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sun, 09 Oct 2016 00:35:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Organizing-Date-s/m-p/303402#M312425</guid>
      <dc:creator>ChrisBrooks</dc:creator>
      <dc:date>2016-10-09T00:35:18Z</dc:date>
    </item>
    <item>
      <title>Re: Organizing Date's</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Organizing-Date-s/m-p/303458#M312426</link>
      <description>&lt;P&gt;Hi:&lt;/P&gt;
&lt;P&gt;&amp;nbsp; Also, the DATA step supports a WHERE statement, so technically, you did not need the PROC SQL step at all.&lt;/P&gt;
&lt;P&gt;cynthia&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc freq data=sashelp.air;
  title '1 Before: Years in SASHELP.AIR';
  tables date;
  format date year4.;
run;
     
** subset only rows GE 1955 for year(date);
data air;
	set sashelp.air;
	where year(date) GE 1955;
run;
    
proc freq data=air;
  title '2 After: only years GE 1955';
  tables date;
  format date year4.;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sun, 09 Oct 2016 17:34:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Organizing-Date-s/m-p/303458#M312426</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2016-10-09T17:34:52Z</dc:date>
    </item>
  </channel>
</rss>

