<?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: Running a program once a month in SAS Enterprise Guide</title>
    <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Running-a-program-once-a-month/m-p/58128#M6000</link>
    <description>Great! Never heard of "week.2" etc.&lt;BR /&gt;
This should solve my problem in an elegant way,&lt;BR /&gt;
&lt;BR /&gt;
thanks,&lt;BR /&gt;
Thomas</description>
    <pubDate>Tue, 04 Nov 2008 09:42:55 GMT</pubDate>
    <dc:creator>tbatliner</dc:creator>
    <dc:date>2008-11-04T09:42:55Z</dc:date>
    <item>
      <title>Running a program once a month</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Running-a-program-once-a-month/m-p/58122#M5994</link>
      <description>Dear all,&lt;BR /&gt;
&lt;BR /&gt;
how would I check e.g. "First Saturday in current Month" or "Last Sunday in current Month"? I checked [pre]intnx[/pre] but couldn't find the solution there. With something like[pre]&lt;BR /&gt;
%if weekday(today()) = 7 and day(today()) lt 8 %then %do;&lt;BR /&gt;
...&lt;BR /&gt;
%end;&lt;BR /&gt;
[/pre]&lt;BR /&gt;
I could solve this Problem; but is there a "nicer" way?&lt;BR /&gt;
&lt;BR /&gt;
Thanks in advance,&lt;BR /&gt;
Thomas</description>
      <pubDate>Thu, 30 Oct 2008 07:22:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Running-a-program-once-a-month/m-p/58122#M5994</guid>
      <dc:creator>tbatliner</dc:creator>
      <dc:date>2008-10-30T07:22:34Z</dc:date>
    </item>
    <item>
      <title>Re: Running a program once a month</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Running-a-program-once-a-month/m-p/58123#M5995</link>
      <description>I think that your solution is quite neat, although the NWKDOM function may give an alternative. And to use functions with macro programming, you have to use the %sysfunc macro function.&lt;BR /&gt;
&lt;BR /&gt;
Regards,&lt;BR /&gt;
Linus</description>
      <pubDate>Thu, 30 Oct 2008 09:18:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Running-a-program-once-a-month/m-p/58123#M5995</guid>
      <dc:creator>LinusH</dc:creator>
      <dc:date>2008-10-30T09:18:38Z</dc:date>
    </item>
    <item>
      <title>Re: Running a program once a month</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Running-a-program-once-a-month/m-p/58124#M5996</link>
      <description>Hi Linus&lt;BR /&gt;
What is this "NWKDOM" function? I don't know it and can't find it in the SAS OnlineDoc.&lt;BR /&gt;
Cheers, Patrick</description>
      <pubDate>Thu, 30 Oct 2008 12:22:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Running-a-program-once-a-month/m-p/58124#M5996</guid>
      <dc:creator>Patrick</dc:creator>
      <dc:date>2008-10-30T12:22:11Z</dc:date>
    </item>
    <item>
      <title>Re: Running a program once a month</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Running-a-program-once-a-month/m-p/58125#M5997</link>
      <description>It is an ETS function that has moved to Base SAS with 9.2. Sorry, should have mentioned it.&lt;BR /&gt;
&lt;BR /&gt;
/Linus</description>
      <pubDate>Thu, 30 Oct 2008 12:27:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Running-a-program-once-a-month/m-p/58125#M5997</guid>
      <dc:creator>LinusH</dc:creator>
      <dc:date>2008-10-30T12:27:26Z</dc:date>
    </item>
    <item>
      <title>Re: Running a program once a month</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Running-a-program-once-a-month/m-p/58126#M5998</link>
      <description>Hi Linus,&lt;BR /&gt;
&lt;BR /&gt;
thanks for your quick reply. Never heard of this function and as we are not using ETS I will have to use my solution.&lt;BR /&gt;
&lt;BR /&gt;
Thanks and br,&lt;BR /&gt;
Thomas</description>
      <pubDate>Thu, 30 Oct 2008 14:01:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Running-a-program-once-a-month/m-p/58126#M5998</guid>
      <dc:creator>tbatliner</dc:creator>
      <dc:date>2008-10-30T14:01:05Z</dc:date>
    </item>
    <item>
      <title>Re: Running a program once a month</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Running-a-program-once-a-month/m-p/58127#M5999</link>
      <description>came across this a while ago:&lt;BR /&gt;
&lt;A href="http://support.sas.com/kb/24/655.html" target="_blank"&gt;http://support.sas.com/kb/24/655.html&lt;/A&gt;&lt;BR /&gt;
&lt;BR /&gt;
it seems like some examples might be relevant for your needs.</description>
      <pubDate>Thu, 30 Oct 2008 20:36:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Running-a-program-once-a-month/m-p/58127#M5999</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2008-10-30T20:36:06Z</dc:date>
    </item>
    <item>
      <title>Re: Running a program once a month</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Running-a-program-once-a-month/m-p/58128#M6000</link>
      <description>Great! Never heard of "week.2" etc.&lt;BR /&gt;
This should solve my problem in an elegant way,&lt;BR /&gt;
&lt;BR /&gt;
thanks,&lt;BR /&gt;
Thomas</description>
      <pubDate>Tue, 04 Nov 2008 09:42:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Running-a-program-once-a-month/m-p/58128#M6000</guid>
      <dc:creator>tbatliner</dc:creator>
      <dc:date>2008-11-04T09:42:55Z</dc:date>
    </item>
    <item>
      <title>Re: Running a program once a month</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Running-a-program-once-a-month/m-p/58129#M6001</link>
      <description>Dear community,&lt;BR /&gt;
&lt;BR /&gt;
exactly two years later I have a similar date-Problem: how to determine the last workday (Friday) on or before the 25th? &lt;span class="lia-unicode-emoji" title=":monkey_face:"&gt;🐵&lt;/span&gt;&lt;BR /&gt;
&lt;BR /&gt;
Let's assume I have a variable d25cm (25th of current month). I tried with&lt;BR /&gt;
[PRE]&lt;BR /&gt;
data _null_;&lt;BR /&gt;
  WDB25=intnx('week.6',&amp;amp;d25cm,(weekday(&amp;amp;d25cm) in (2,3,4,5,6))-1);&lt;BR /&gt;
  if today() = WDB25 then do;&lt;BR /&gt;
    /* more code */&lt;BR /&gt;
  end;&lt;BR /&gt;
run;&lt;BR /&gt;
[/PRE]&lt;BR /&gt;
&lt;BR /&gt;
but that doesn't work as expected. Any idea will be of great help!&lt;BR /&gt;
&lt;BR /&gt;
With best regards,&lt;BR /&gt;
Thomas</description>
      <pubDate>Thu, 04 Nov 2010 14:49:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Running-a-program-once-a-month/m-p/58129#M6001</guid>
      <dc:creator>tbatliner</dc:creator>
      <dc:date>2010-11-04T14:49:41Z</dc:date>
    </item>
    <item>
      <title>Re: Running a program once a month</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Running-a-program-once-a-month/m-p/58130#M6002</link>
      <description>I think I just found an easy solution (didn't know about the 'weekday' interval):&lt;BR /&gt;
[PRE]&lt;BR /&gt;
WDB25=intnx('weekday',d25cm,0);&lt;BR /&gt;
[/PRE]&lt;BR /&gt;
&lt;BR /&gt;
Thomas</description>
      <pubDate>Thu, 04 Nov 2010 15:09:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Running-a-program-once-a-month/m-p/58130#M6002</guid>
      <dc:creator>tbatliner</dc:creator>
      <dc:date>2010-11-04T15:09:06Z</dc:date>
    </item>
  </channel>
</rss>

