<?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: sysparm for getting date range for  year-to-date weekly in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/sysparm-for-getting-date-range-for-year-to-date-weekly/m-p/595075#M171124</link>
    <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/31304"&gt;@PeterClemmensen&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;You can obtain the two date value like this. Not sure how this relates to you options sysparm statements though &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data _null_;
    YearStart=intnx('year', today(), 0, 'b');
    RecentWeekEnd=intnx('week.2', today(), 0, 'b')-1;
    put YearStart date9. // RecentWeekEnd date9.;
run;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Thanks. I know how to do it that way. I think it must be a function that is internal to our company that someone wrote. We have a macro that generates a variety of dates and date formats based on the sysparm. I think there is something that is internal to that function that generates the date range that I want when it sees "ytd_mon" or "ytd_qtr". I look in there to see if there is one for weekly too.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks again.&lt;/P&gt;</description>
    <pubDate>Wed, 09 Oct 2019 14:46:55 GMT</pubDate>
    <dc:creator>DanD999</dc:creator>
    <dc:date>2019-10-09T14:46:55Z</dc:date>
    <item>
      <title>sysparm for getting date range for  year-to-date weekly</title>
      <link>https://communities.sas.com/t5/SAS-Programming/sysparm-for-getting-date-range-for-year-to-date-weekly/m-p/595065#M171115</link>
      <description>&lt;P&gt;Is there something to get the date range from the beginning of the year to the end of the most recently week like there is for a year-to-date monthly or quarterly date range?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;options sysparm ="parmmaker=20000101~&lt;STRONG&gt;ytd_qtr&lt;/STRONG&gt;~1~1,file_sfx=_test,run_as_test=Y";&lt;/P&gt;
&lt;P&gt;or&lt;/P&gt;
&lt;P&gt;options sysparm='parmmaker=20000101~&lt;STRONG&gt;ytd_mon&lt;/STRONG&gt;~0~0,file_sfx=test,client=SHELLOIL';&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks&lt;/P&gt;
&lt;P&gt;&lt;LI-WRAPPER&gt;&lt;/LI-WRAPPER&gt;&lt;/P&gt;
&lt;P&gt;&lt;LI-WRAPPER&gt;&lt;/LI-WRAPPER&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 09 Oct 2019 14:34:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/sysparm-for-getting-date-range-for-year-to-date-weekly/m-p/595065#M171115</guid>
      <dc:creator>DanD999</dc:creator>
      <dc:date>2019-10-09T14:34:17Z</dc:date>
    </item>
    <item>
      <title>Re: sysparm for getting date range for  year-to-date weekly</title>
      <link>https://communities.sas.com/t5/SAS-Programming/sysparm-for-getting-date-range-for-year-to-date-weekly/m-p/595066#M171116</link>
      <description>&lt;P&gt;Do you want all these dates in a data set or simply the two dates?&lt;/P&gt;</description>
      <pubDate>Wed, 09 Oct 2019 14:35:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/sysparm-for-getting-date-range-for-year-to-date-weekly/m-p/595066#M171116</guid>
      <dc:creator>PeterClemmensen</dc:creator>
      <dc:date>2019-10-09T14:35:44Z</dc:date>
    </item>
    <item>
      <title>Re: sysparm for getting date range for  year-to-date weekly</title>
      <link>https://communities.sas.com/t5/SAS-Programming/sysparm-for-getting-date-range-for-year-to-date-weekly/m-p/595069#M171118</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/31304"&gt;@PeterClemmensen&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Do you want all these dates in a data set or simply the two dates?&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Just the begin and end dates. I'm wondering if this is something that was done internally and is not a SAS function. Thanks for the quick reply.&lt;/P&gt;</description>
      <pubDate>Wed, 09 Oct 2019 14:38:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/sysparm-for-getting-date-range-for-year-to-date-weekly/m-p/595069#M171118</guid>
      <dc:creator>DanD999</dc:creator>
      <dc:date>2019-10-09T14:38:54Z</dc:date>
    </item>
    <item>
      <title>Re: sysparm for getting date range for  year-to-date weekly</title>
      <link>https://communities.sas.com/t5/SAS-Programming/sysparm-for-getting-date-range-for-year-to-date-weekly/m-p/595070#M171119</link>
      <description>&lt;P&gt;What is your actual question?&lt;/P&gt;
&lt;P&gt;SYSPARM is a generic option to the user pass in text on the command line when stating SAS.&lt;/P&gt;
&lt;P&gt;How the program that you wrote is using that string you will need to tell us.&lt;/P&gt;</description>
      <pubDate>Wed, 09 Oct 2019 14:40:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/sysparm-for-getting-date-range-for-year-to-date-weekly/m-p/595070#M171119</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2019-10-09T14:40:59Z</dc:date>
    </item>
    <item>
      <title>Re: sysparm for getting date range for  year-to-date weekly</title>
      <link>https://communities.sas.com/t5/SAS-Programming/sysparm-for-getting-date-range-for-year-to-date-weekly/m-p/595071#M171120</link>
      <description>&lt;P&gt;You can obtain the two date value like this. Not sure how this relates to you options sysparm statements though &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data _null_;
    YearStart=intnx('year', today(), 0, 'b');
    RecentWeekEnd=intnx('week.2', today(), 0, 'b')-1;
    put YearStart date9. // RecentWeekEnd date9.;
run;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 09 Oct 2019 14:41:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/sysparm-for-getting-date-range-for-year-to-date-weekly/m-p/595071#M171120</guid>
      <dc:creator>PeterClemmensen</dc:creator>
      <dc:date>2019-10-09T14:41:59Z</dc:date>
    </item>
    <item>
      <title>Re: sysparm for getting date range for  year-to-date weekly</title>
      <link>https://communities.sas.com/t5/SAS-Programming/sysparm-for-getting-date-range-for-year-to-date-weekly/m-p/595075#M171124</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/31304"&gt;@PeterClemmensen&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;You can obtain the two date value like this. Not sure how this relates to you options sysparm statements though &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data _null_;
    YearStart=intnx('year', today(), 0, 'b');
    RecentWeekEnd=intnx('week.2', today(), 0, 'b')-1;
    put YearStart date9. // RecentWeekEnd date9.;
run;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Thanks. I know how to do it that way. I think it must be a function that is internal to our company that someone wrote. We have a macro that generates a variety of dates and date formats based on the sysparm. I think there is something that is internal to that function that generates the date range that I want when it sees "ytd_mon" or "ytd_qtr". I look in there to see if there is one for weekly too.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks again.&lt;/P&gt;</description>
      <pubDate>Wed, 09 Oct 2019 14:46:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/sysparm-for-getting-date-range-for-year-to-date-weekly/m-p/595075#M171124</guid>
      <dc:creator>DanD999</dc:creator>
      <dc:date>2019-10-09T14:46:55Z</dc:date>
    </item>
  </channel>
</rss>

