<?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 start and end week name of month in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/intnx-start-and-end-week-name-of-month/m-p/820655#M323947</link>
    <description>&lt;P&gt;Are you looking for something like this? The INTNX function can give you the first/last date of a given period.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data want;
  do month = 1 to 12;
    someDate = mdy(month, 15, 2022);
    startDay = intnx("month", someDate, 0, "B");
    endDay = intnx("month", someDate, 0, "E");
    output;
  end;

  format
    somedate date9.
    startDay endDay weekdate.
  ;
run;

proc print data=want noobs;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Tue, 28 Jun 2022 07:59:58 GMT</pubDate>
    <dc:creator>BrunoMueller</dc:creator>
    <dc:date>2022-06-28T07:59:58Z</dc:date>
    <item>
      <title>intnx start and end week name of month</title>
      <link>https://communities.sas.com/t5/SAS-Programming/intnx-start-and-end-week-name-of-month/m-p/820638#M323937</link>
      <description>&lt;PRE&gt;&lt;CODE class=""&gt;data Months;
do i ='01JAN2022'd to '31DEC2022'd;
FirstDayMonth = intnx('month', i,0,'b'); 
output;
do j= '01JAN2022'd to '31DEC2022'd;
EndDayMonth = intnx('month',j,0, 'e'); ; 
output;
drop firstdaycurrmonth enddaycurrmonth;
end;
end;
format _ALL_ weekdate9.;
run;
 
proc print data=Months noobs;
run;
&lt;BR /&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Here i want start weekname and end weekname of each month in a given date range&lt;/P&gt;</description>
      <pubDate>Tue, 28 Jun 2022 05:14:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/intnx-start-and-end-week-name-of-month/m-p/820638#M323937</guid>
      <dc:creator>Suryak</dc:creator>
      <dc:date>2022-06-28T05:14:36Z</dc:date>
    </item>
    <item>
      <title>Re: intnx start and end week name of month</title>
      <link>https://communities.sas.com/t5/SAS-Programming/intnx-start-and-end-week-name-of-month/m-p/820640#M323939</link>
      <description>&lt;P&gt;Weeks have no names, only numbers. Or do you mean the weekday of a given date?&lt;/P&gt;</description>
      <pubDate>Tue, 28 Jun 2022 05:32:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/intnx-start-and-end-week-name-of-month/m-p/820640#M323939</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2022-06-28T05:32:54Z</dc:date>
    </item>
    <item>
      <title>Re: intnx start and end week name of month</title>
      <link>https://communities.sas.com/t5/SAS-Programming/intnx-start-and-end-week-name-of-month/m-p/820642#M323941</link>
      <description>i want to weekname start weekname and end weekname of each month&lt;BR /&gt;ex: This june month weekstarts wednesday endofmonth thursday</description>
      <pubDate>Tue, 28 Jun 2022 05:36:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/intnx-start-and-end-week-name-of-month/m-p/820642#M323941</guid>
      <dc:creator>Suryak</dc:creator>
      <dc:date>2022-06-28T05:36:37Z</dc:date>
    </item>
    <item>
      <title>Re: intnx start and end week name of month</title>
      <link>https://communities.sas.com/t5/SAS-Programming/intnx-start-and-end-week-name-of-month/m-p/820650#M323946</link>
      <description>&lt;P&gt;&lt;STRONG&gt;WEEKS DO NOT HAVE NAMES.&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;So the word "weekname" makes no sense.&lt;/P&gt;
&lt;P&gt;Please show which value(s) you have, and what you want to get from it&lt;/P&gt;</description>
      <pubDate>Tue, 28 Jun 2022 07:42:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/intnx-start-and-end-week-name-of-month/m-p/820650#M323946</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2022-06-28T07:42:16Z</dc:date>
    </item>
    <item>
      <title>Re: intnx start and end week name of month</title>
      <link>https://communities.sas.com/t5/SAS-Programming/intnx-start-and-end-week-name-of-month/m-p/820655#M323947</link>
      <description>&lt;P&gt;Are you looking for something like this? The INTNX function can give you the first/last date of a given period.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data want;
  do month = 1 to 12;
    someDate = mdy(month, 15, 2022);
    startDay = intnx("month", someDate, 0, "B");
    endDay = intnx("month", someDate, 0, "E");
    output;
  end;

  format
    somedate date9.
    startDay endDay weekdate.
  ;
run;

proc print data=want noobs;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 28 Jun 2022 07:59:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/intnx-start-and-end-week-name-of-month/m-p/820655#M323947</guid>
      <dc:creator>BrunoMueller</dc:creator>
      <dc:date>2022-06-28T07:59:58Z</dc:date>
    </item>
    <item>
      <title>Re: intnx start and end week name of month</title>
      <link>https://communities.sas.com/t5/SAS-Programming/intnx-start-and-end-week-name-of-month/m-p/820656#M323948</link>
      <description>YES almost same result</description>
      <pubDate>Tue, 28 Jun 2022 08:18:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/intnx-start-and-end-week-name-of-month/m-p/820656#M323948</guid>
      <dc:creator>Suryak</dc:creator>
      <dc:date>2022-06-28T08:18:42Z</dc:date>
    </item>
  </channel>
</rss>

