<?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: create table post 14th working day of the current month using SAS 9.1.3. in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/create-table-post-14th-working-day-of-the-current-month-using/m-p/240992#M44578</link>
    <description>&lt;P&gt;However changing format from date11. to date9. gave me correct date. Thanks for your reply and your logic&amp;nbsp;&lt;SPAN class="login-bold"&gt;&lt;A id="link_8" class="lia-link-navigation lia-page-link lia-user-name-link" href="https://communities.sas.com/t5/user/viewprofilepage/user-id/18408" target="_self"&gt;Ksharp&lt;/A&gt;.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class="login-bold"&gt;Regards,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class="login-bold"&gt;Tushar J.&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 28 Dec 2015 08:07:03 GMT</pubDate>
    <dc:creator>Tushar</dc:creator>
    <dc:date>2015-12-28T08:07:03Z</dc:date>
    <item>
      <title>create table post 14th working day of the current month using SAS 9.1.3.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/create-table-post-14th-working-day-of-the-current-month-using/m-p/240986#M44572</link>
      <description>&lt;P&gt;Hi everyone,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;i need to create table on post 14th weekday fo the month, &amp;nbsp;i have macro which store current month and year. for eg. lets say rpprd=201512, so my requirement is create table only after 14th weekday of the current month. so for this month it will be &lt;STRONG&gt;after&lt;/STRONG&gt; &lt;STRONG&gt;18th-Dec-2015&lt;/STRONG&gt; i can create table. so the check is only on the current date, which should not not between 1st to 14th weekday of the current month in order to create table.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;so something like below i want.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;%if (%sysfunc(today() = 1st to 14th weekday of the current month)) then do;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="line-height: 20px;"&gt;%put "can't create table as per rule" ;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;%end;&lt;/P&gt;
&lt;P&gt;%else; %do;&lt;/P&gt;
&lt;P&gt;proc sql;&lt;/P&gt;
&lt;P&gt;create table xyz;&lt;/P&gt;
&lt;P&gt;quit;&lt;/P&gt;
&lt;P&gt;%end;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;Thanks in advance,&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Tushar J&lt;/P&gt;</description>
      <pubDate>Mon, 28 Dec 2015 06:26:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/create-table-post-14th-working-day-of-the-current-month-using/m-p/240986#M44572</guid>
      <dc:creator>Tushar</dc:creator>
      <dc:date>2015-12-28T06:26:45Z</dc:date>
    </item>
    <item>
      <title>Re: create table post 14th working day of the current month using SAS 9.1.3.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/create-table-post-14th-working-day-of-the-current-month-using/m-p/240990#M44576</link>
      <description>&lt;P&gt;Did you check INTNX() + weekday ?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%let year=2015;
%let month=12;
%let want=%sysfunc(intnx(weekday,%sysfunc(mdy(&amp;amp;month,1,&amp;amp;year)),14),date11.);
%put &amp;amp;want ;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 28 Dec 2015 07:25:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/create-table-post-14th-working-day-of-the-current-month-using/m-p/240990#M44576</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2015-12-28T07:25:55Z</dc:date>
    </item>
    <item>
      <title>Re: create table post 14th working day of the current month using SAS 9.1.3.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/create-table-post-14th-working-day-of-the-current-month-using/m-p/240991#M44577</link>
      <description>&lt;P&gt;HI &lt;A id="link_8" class="lia-link-navigation lia-page-link lia-user-name-link" href="https://communities.sas.com/t5/user/viewprofilepage/user-id/18408" target="_self"&gt;&lt;SPAN class="login-bold"&gt;Ksharp&lt;/SPAN&gt;&lt;/A&gt;,&lt;/P&gt;
&lt;P&gt;thanks for your reply, however i am getting error after executing below code on EG SAS 9.1.3.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE class=" language-sas"&gt;&lt;CODE class="  language-sas"&gt;&lt;SPAN class="token macroname"&gt;%let&lt;/SPAN&gt; &lt;SPAN class="token function"&gt;year&lt;/SPAN&gt;&lt;SPAN class="token operator"&gt;=&lt;/SPAN&gt;&lt;SPAN class="token number"&gt;2015&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;;&lt;/SPAN&gt;
&lt;SPAN class="token macroname"&gt;%let&lt;/SPAN&gt; &lt;SPAN class="token function"&gt;month&lt;/SPAN&gt;&lt;SPAN class="token operator"&gt;=&lt;/SPAN&gt;&lt;SPAN class="token number"&gt;12&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;;&lt;/SPAN&gt;
&lt;SPAN class="token macroname"&gt;%let&lt;/SPAN&gt; want&lt;SPAN class="token operator"&gt;=&lt;/SPAN&gt;&lt;SPAN class="token macrostatement"&gt;%sysfunc&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;(&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;intnx&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;(&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;weekday&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;,&lt;/SPAN&gt;&lt;SPAN class="token macrostatement"&gt;%sysfunc&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;(&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;mdy&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;(&lt;/SPAN&gt;&lt;SPAN class="token operator"&gt;&amp;amp;&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;month&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;,&lt;/SPAN&gt;&lt;SPAN class="token number"&gt;1&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;,&lt;/SPAN&gt;&lt;SPAN class="token operator"&gt;&amp;amp;&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;year&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;)&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;)&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;,&lt;/SPAN&gt;&lt;SPAN class="token number"&gt;14&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;)&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;,&lt;/SPAN&gt;date11&lt;SPAN class="token punctuation"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;)&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;;&lt;/SPAN&gt;
&lt;SPAN class="token macrostatement"&gt;%put&lt;/SPAN&gt; &lt;SPAN class="token operator"&gt;&amp;amp;&lt;/SPAN&gt;want &lt;SPAN class="token punctuation"&gt;;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;ERROR: Format name DATE11. not found or the width and/or decimal specified for the format used are out of range.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 28 Dec 2015 07:47:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/create-table-post-14th-working-day-of-the-current-month-using/m-p/240991#M44577</guid>
      <dc:creator>Tushar</dc:creator>
      <dc:date>2015-12-28T07:47:55Z</dc:date>
    </item>
    <item>
      <title>Re: create table post 14th working day of the current month using SAS 9.1.3.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/create-table-post-14th-working-day-of-the-current-month-using/m-p/240992#M44578</link>
      <description>&lt;P&gt;However changing format from date11. to date9. gave me correct date. Thanks for your reply and your logic&amp;nbsp;&lt;SPAN class="login-bold"&gt;&lt;A id="link_8" class="lia-link-navigation lia-page-link lia-user-name-link" href="https://communities.sas.com/t5/user/viewprofilepage/user-id/18408" target="_self"&gt;Ksharp&lt;/A&gt;.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class="login-bold"&gt;Regards,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class="login-bold"&gt;Tushar J.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 28 Dec 2015 08:07:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/create-table-post-14th-working-day-of-the-current-month-using/m-p/240992#M44578</guid>
      <dc:creator>Tushar</dc:creator>
      <dc:date>2015-12-28T08:07:03Z</dc:date>
    </item>
  </channel>
</rss>

