<?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: Finding Tuesday date in SAS Enterprise Guide</title>
    <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Finding-Tuesday-date/m-p/464266#M29988</link>
    <description>&lt;P&gt;INTNX().&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Align it to the beginning of the week and then add 2. Check the docs for the details.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;Tuesday = intnx('week', today(), 0, 'b') + 2;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/203162"&gt;@dhruvakumar&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Dear All,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Good morning ! I need to find tuesday date of the week dynamically.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For instance today date is 23-05-2018, when I run my code the date should be assigned to&amp;nbsp; 22-05-2018&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Another instance if run the code next week i.e 28-05-2018 , the date value should be assigned to 29-05-2018..&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please help to provide advise. Thank you.&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 23 May 2018 02:44:01 GMT</pubDate>
    <dc:creator>Reeza</dc:creator>
    <dc:date>2018-05-23T02:44:01Z</dc:date>
    <item>
      <title>Finding Tuesday date</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Finding-Tuesday-date/m-p/464263#M29987</link>
      <description>&lt;P&gt;Dear All,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Good morning ! I need to find tuesday date of the week dynamically.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For instance today date is 23-05-2018, when I run my code the date should be assigned to&amp;nbsp; 22-05-2018&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Another instance if run the code next week i.e 28-05-2018 , the date value should be assigned to 29-05-2018..&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please help to provide advise. Thank you.&lt;/P&gt;</description>
      <pubDate>Wed, 23 May 2018 02:34:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Finding-Tuesday-date/m-p/464263#M29987</guid>
      <dc:creator>dhruvakumar</dc:creator>
      <dc:date>2018-05-23T02:34:41Z</dc:date>
    </item>
    <item>
      <title>Re: Finding Tuesday date</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Finding-Tuesday-date/m-p/464266#M29988</link>
      <description>&lt;P&gt;INTNX().&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Align it to the beginning of the week and then add 2. Check the docs for the details.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;Tuesday = intnx('week', today(), 0, 'b') + 2;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/203162"&gt;@dhruvakumar&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Dear All,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Good morning ! I need to find tuesday date of the week dynamically.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For instance today date is 23-05-2018, when I run my code the date should be assigned to&amp;nbsp; 22-05-2018&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Another instance if run the code next week i.e 28-05-2018 , the date value should be assigned to 29-05-2018..&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please help to provide advise. Thank you.&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 23 May 2018 02:44:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Finding-Tuesday-date/m-p/464266#M29988</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2018-05-23T02:44:01Z</dc:date>
    </item>
    <item>
      <title>Re: Finding Tuesday date</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Finding-Tuesday-date/m-p/464267#M29989</link>
      <description>&lt;P&gt;This is reliably done with SAS date interval functions:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data test;
do date = '01may2018'd to '31may2018'd;
    tuesday = intnx("day", intnx("week", date, 0), 2);
    output;
    end;
format date tuesday yymmdd10.;
run;

proc print data=test noobs; run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;i.e. find the date of the beginning of the week (a Sunday) and then move forward two days.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 23 May 2018 02:49:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Finding-Tuesday-date/m-p/464267#M29989</guid>
      <dc:creator>PGStats</dc:creator>
      <dc:date>2018-05-23T02:49:54Z</dc:date>
    </item>
    <item>
      <title>Re: Finding Tuesday date</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Finding-Tuesday-date/m-p/464272#M29990</link>
      <description>Dear Reeza,&lt;BR /&gt;&lt;BR /&gt;Thank a lot.It working fine.</description>
      <pubDate>Wed, 23 May 2018 03:29:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Finding-Tuesday-date/m-p/464272#M29990</guid>
      <dc:creator>dhruvakumar</dc:creator>
      <dc:date>2018-05-23T03:29:09Z</dc:date>
    </item>
  </channel>
</rss>

