<?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 run code only in january in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/run-code-only-in-january/m-p/173524#M264456</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have two pieces of code that I only want run in January.&amp;nbsp; Currently they are running every month which is fine but very ineffiecient.&amp;nbsp; I am saving history by month for the current year and the december file for the three previous years.&amp;nbsp; The second code is only taking last december data.&amp;nbsp; I set it up this way so the end user doesn't have to change anything or have any extra steps.&amp;nbsp; BUT, I'd like to set it up so this piece of code only runs in January.&amp;nbsp; Any help will be appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank You,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data testhistory;&lt;/P&gt;&lt;P&gt;set testhistory;&lt;/P&gt;&lt;P&gt;where year(reporting_date) = year(&amp;amp;yeardate) or&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; reporting_date = &amp;amp;yeardate11 or&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; reporting_date = &amp;amp;yeardate22 or&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; reporting_date = &amp;amp;yeardate33;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data testdec;&lt;/P&gt;&lt;P&gt;set testdec;&lt;/P&gt;&lt;P&gt;where reporting_date = &amp;amp;yeardate11;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 24 Aug 2014 14:06:22 GMT</pubDate>
    <dc:creator>Steelers_In_DC</dc:creator>
    <dc:date>2014-08-24T14:06:22Z</dc:date>
    <item>
      <title>run code only in january</title>
      <link>https://communities.sas.com/t5/SAS-Programming/run-code-only-in-january/m-p/173524#M264456</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have two pieces of code that I only want run in January.&amp;nbsp; Currently they are running every month which is fine but very ineffiecient.&amp;nbsp; I am saving history by month for the current year and the december file for the three previous years.&amp;nbsp; The second code is only taking last december data.&amp;nbsp; I set it up this way so the end user doesn't have to change anything or have any extra steps.&amp;nbsp; BUT, I'd like to set it up so this piece of code only runs in January.&amp;nbsp; Any help will be appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank You,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data testhistory;&lt;/P&gt;&lt;P&gt;set testhistory;&lt;/P&gt;&lt;P&gt;where year(reporting_date) = year(&amp;amp;yeardate) or&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; reporting_date = &amp;amp;yeardate11 or&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; reporting_date = &amp;amp;yeardate22 or&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; reporting_date = &amp;amp;yeardate33;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data testdec;&lt;/P&gt;&lt;P&gt;set testdec;&lt;/P&gt;&lt;P&gt;where reporting_date = &amp;amp;yeardate11;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 24 Aug 2014 14:06:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/run-code-only-in-january/m-p/173524#M264456</guid>
      <dc:creator>Steelers_In_DC</dc:creator>
      <dc:date>2014-08-24T14:06:22Z</dc:date>
    </item>
    <item>
      <title>Re: run code only in january</title>
      <link>https://communities.sas.com/t5/SAS-Programming/run-code-only-in-january/m-p/173525#M264457</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;where month(reporting_date) = 12&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Richard&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 24 Aug 2014 14:58:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/run-code-only-in-january/m-p/173525#M264457</guid>
      <dc:creator>RichardinOz</dc:creator>
      <dc:date>2014-08-24T14:58:37Z</dc:date>
    </item>
  </channel>
</rss>

