<?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: INTNX for week day in %SYSFUNC in New SAS User</title>
    <link>https://communities.sas.com/t5/New-SAS-User/INTNX-for-week-day-in-SYSFUNC/m-p/573037#M12422</link>
    <description>&lt;P&gt;What is the Purpose of this? Are you going to use the actual date variables or do you simply want to print 'Monday' and 'Friday' in the log?&lt;/P&gt;</description>
    <pubDate>Fri, 12 Jul 2019 11:21:30 GMT</pubDate>
    <dc:creator>PeterClemmensen</dc:creator>
    <dc:date>2019-07-12T11:21:30Z</dc:date>
    <item>
      <title>INTNX for week day in %SYSFUNC</title>
      <link>https://communities.sas.com/t5/New-SAS-User/INTNX-for-week-day-in-SYSFUNC/m-p/573030#M12417</link>
      <description>&lt;P&gt;&lt;BR /&gt;Hi ,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to create monday and friday using sysfunc in sas EG but its not working for me.Kindly help me on below code.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;%LET Monday = %SYSFUNC(INTNX('WEEK.2',%SYSFUNC(TODAY()),2),DOWNAME.);&lt;BR /&gt;%PUT &amp;amp;Monday;&lt;BR /&gt;%LET Friday = %SYSFUNC(INTNX('WEEK.6',%SYSFUNC(TODAY()),6),DOWNAME.);&lt;BR /&gt;%PUT &amp;amp;Friday;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Thanks,&lt;/P&gt;&lt;P&gt;Siva&lt;/P&gt;</description>
      <pubDate>Fri, 12 Jul 2019 10:45:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/INTNX-for-week-day-in-SYSFUNC/m-p/573030#M12417</guid>
      <dc:creator>sivastat08</dc:creator>
      <dc:date>2019-07-12T10:45:06Z</dc:date>
    </item>
    <item>
      <title>Re: INTNX for week day in %SYSFUNC</title>
      <link>https://communities.sas.com/t5/New-SAS-User/INTNX-for-week-day-in-SYSFUNC/m-p/573033#M12419</link>
      <description>&lt;P&gt;Small changes&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%LET Monday = %SYSFUNC(INTNX(WEEK.2,%SYSFUNC(TODAY()),0), 'b');
%PUT &amp;amp;Monday;
%LET Friday = %SYSFUNC(INTNX(WEEK.6,%SYSFUNC(TODAY()),0), 'b');
%PUT &amp;amp;Friday;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 12 Jul 2019 11:08:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/INTNX-for-week-day-in-SYSFUNC/m-p/573033#M12419</guid>
      <dc:creator>PeterClemmensen</dc:creator>
      <dc:date>2019-07-12T11:08:45Z</dc:date>
    </item>
    <item>
      <title>Re: INTNX for week day in %SYSFUNC</title>
      <link>https://communities.sas.com/t5/New-SAS-User/INTNX-for-week-day-in-SYSFUNC/m-p/573035#M12420</link>
      <description>Hello Sir, Thanks for the answer, Code ae working fine but Format is not showing Monday or Friday&lt;BR /&gt;26 GOPTIONS ACCESSIBLE;&lt;BR /&gt;27 %LET Monday = %SYSFUNC(INTNX(WEEK.2,%SYSFUNC(TODAY()),0), 'b');&lt;BR /&gt;28 %PUT &amp;amp;Monday;&lt;BR /&gt;21738&lt;BR /&gt;29 %LET Friday = %SYSFUNC(INTNX(WEEK.6,%SYSFUNC(TODAY()),0), 'b');&lt;BR /&gt;30 %PUT &amp;amp;Friday;&lt;BR /&gt;21742&lt;BR /&gt;&lt;BR /&gt;,Kindly help me on format</description>
      <pubDate>Fri, 12 Jul 2019 11:14:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/INTNX-for-week-day-in-SYSFUNC/m-p/573035#M12420</guid>
      <dc:creator>sivastat08</dc:creator>
      <dc:date>2019-07-12T11:14:59Z</dc:date>
    </item>
    <item>
      <title>Re: INTNX for week day in %SYSFUNC</title>
      <link>https://communities.sas.com/t5/New-SAS-User/INTNX-for-week-day-in-SYSFUNC/m-p/573037#M12422</link>
      <description>&lt;P&gt;What is the Purpose of this? Are you going to use the actual date variables or do you simply want to print 'Monday' and 'Friday' in the log?&lt;/P&gt;</description>
      <pubDate>Fri, 12 Jul 2019 11:21:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/INTNX-for-week-day-in-SYSFUNC/m-p/573037#M12422</guid>
      <dc:creator>PeterClemmensen</dc:creator>
      <dc:date>2019-07-12T11:21:30Z</dc:date>
    </item>
    <item>
      <title>Re: INTNX for week day in %SYSFUNC</title>
      <link>https://communities.sas.com/t5/New-SAS-User/INTNX-for-week-day-in-SYSFUNC/m-p/573043#M12423</link>
      <description>&lt;P&gt;I want to send automated email using email body mentioning monday date and friday date as "08Mon19 - 16Fri19"&lt;/P&gt;</description>
      <pubDate>Fri, 12 Jul 2019 11:38:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/INTNX-for-week-day-in-SYSFUNC/m-p/573043#M12423</guid>
      <dc:creator>sivastat08</dc:creator>
      <dc:date>2019-07-12T11:38:11Z</dc:date>
    </item>
    <item>
      <title>Re: INTNX for week day in %SYSFUNC</title>
      <link>https://communities.sas.com/t5/New-SAS-User/INTNX-for-week-day-in-SYSFUNC/m-p/573044#M12424</link>
      <description>&lt;P&gt;So the real task is to get the string &lt;SPAN&gt;"08Mon19 - 16Mon19" into a macro variable?&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 12 Jul 2019 11:38:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/INTNX-for-week-day-in-SYSFUNC/m-p/573044#M12424</guid>
      <dc:creator>PeterClemmensen</dc:creator>
      <dc:date>2019-07-12T11:38:54Z</dc:date>
    </item>
    <item>
      <title>Re: INTNX for week day in %SYSFUNC</title>
      <link>https://communities.sas.com/t5/New-SAS-User/INTNX-for-week-day-in-SYSFUNC/m-p/573045#M12425</link>
      <description>&lt;P&gt;Yes sir.This code will run on every friday it should display Current Week Monday to Friday date Dynamically.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 12 Jul 2019 11:42:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/INTNX-for-week-day-in-SYSFUNC/m-p/573045#M12425</guid>
      <dc:creator>sivastat08</dc:creator>
      <dc:date>2019-07-12T11:42:41Z</dc:date>
    </item>
    <item>
      <title>Re: INTNX for week day in %SYSFUNC</title>
      <link>https://communities.sas.com/t5/New-SAS-User/INTNX-for-week-day-in-SYSFUNC/m-p/573048#M12428</link>
      <description>&lt;P&gt;here is the sample code&lt;/P&gt;&lt;P&gt;%LET TODAY=%SYSFUNC(TODAY(),DATE9.);&lt;BR /&gt;%PUT &amp;amp;TODAY;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;%LET Monday = %SYSFUNC(INTNX(WEEK.2,%SYSFUNC(TODAY()),0), 'b');&lt;BR /&gt;%PUT &amp;amp;Monday DOWNAME.;&lt;BR /&gt;%LET Friday = %SYSFUNC(INTNX(WEEK.6,%SYSFUNC(TODAY()),0), 'b');&lt;BR /&gt;%PUT &amp;amp;Friday;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;filename outbox email&lt;BR /&gt;to= ('XXX.YYY@abchealth.com')&lt;BR /&gt;cc= ('sivakumar.siva@abchealth.com')&lt;BR /&gt;type='text/html'&lt;BR /&gt;subject="Weekly Status";&lt;BR /&gt;data _null_;&lt;BR /&gt;file outbox;&lt;BR /&gt;put "Hi all";&lt;BR /&gt;put "&amp;lt;P&amp;gt;";&lt;BR /&gt;Put "Please find the Weekly Status Report of 08July2019 - 12jul2019 ";&lt;BR /&gt;put "&amp;lt;P&amp;gt;";&lt;BR /&gt;put "Thank you,";&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 12 Jul 2019 11:52:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/INTNX-for-week-day-in-SYSFUNC/m-p/573048#M12428</guid>
      <dc:creator>sivastat08</dc:creator>
      <dc:date>2019-07-12T11:52:46Z</dc:date>
    </item>
    <item>
      <title>Re: INTNX for week day in %SYSFUNC</title>
      <link>https://communities.sas.com/t5/New-SAS-User/INTNX-for-week-day-in-SYSFUNC/m-p/573059#M12432</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/90077"&gt;@sivastat08&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;I want to send automated email using email body mentioning monday date and friday date as "08Mon19 - 16Fri19"&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Then why are you making it harder by trying to do it in macro code? Just do it in a data step and eliminate a lot of complexity.&lt;/P&gt;</description>
      <pubDate>Fri, 12 Jul 2019 12:18:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/INTNX-for-week-day-in-SYSFUNC/m-p/573059#M12432</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2019-07-12T12:18:52Z</dc:date>
    </item>
    <item>
      <title>Re: INTNX for week day in %SYSFUNC</title>
      <link>https://communities.sas.com/t5/New-SAS-User/INTNX-for-week-day-in-SYSFUNC/m-p/573061#M12433</link>
      <description>&lt;P&gt;No need for messing with macro variables if you are already running a data step.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data _null_;
  file outbox;
  monday=intnx('week.2',today(),0);
  friday=monday+4;
  put 'Hi all';
  put '&amp;lt;P&amp;gt;';
  put 'Please find the Weekly Status Report of ' monday date9. ' - ' friday date9.;
  put '&amp;lt;P&amp;gt;';
  put 'Thank you,';
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 12 Jul 2019 12:24:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/INTNX-for-week-day-in-SYSFUNC/m-p/573061#M12433</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2019-07-12T12:24:07Z</dc:date>
    </item>
    <item>
      <title>Re: INTNX for week day in %SYSFUNC</title>
      <link>https://communities.sas.com/t5/New-SAS-User/INTNX-for-week-day-in-SYSFUNC/m-p/573077#M12436</link>
      <description>&lt;P&gt;Sure Tom.&lt;SPAN&gt;Thank you for such a detailed answer!&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 12 Jul 2019 13:01:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/INTNX-for-week-day-in-SYSFUNC/m-p/573077#M12436</guid>
      <dc:creator>sivastat08</dc:creator>
      <dc:date>2019-07-12T13:01:48Z</dc:date>
    </item>
  </channel>
</rss>

