<?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: SAS Macro Dates and Libname in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/SAS-Macro-Dates-and-Libname/m-p/364891#M86599</link>
    <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/11562"&gt;@Kurt_Bremser&lt;/a&gt;&lt;/P&gt;&lt;P&gt;Much appreciated!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 07 Jun 2017 10:29:48 GMT</pubDate>
    <dc:creator>MadMax</dc:creator>
    <dc:date>2017-06-07T10:29:48Z</dc:date>
    <item>
      <title>SAS Macro Dates and Libname</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-Macro-Dates-and-Libname/m-p/364872#M86593</link>
      <description>&lt;P&gt;I need help with the following. Im not a SAS guru.&amp;nbsp;Im in the process of building automated SAS runs, the SAS code need to autoupdate the libname with the current month's date (however the day will ALWAYS be the 7th).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;the libname should look like this this month:&lt;/P&gt;&lt;P&gt;libname mylib 'C:\Users\folder1\Folder2\2017-06-07'&lt;/P&gt;&lt;P&gt;next month:&lt;/P&gt;&lt;P&gt;libname mylib 'C:\Users\folder1\Folder2\2017-07-07'&lt;/P&gt;&lt;P&gt;the month after that&lt;/P&gt;&lt;P&gt;libname mylib 'C:\Users\folder1\Folder2\2017-08-07'&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I&amp;nbsp;struggle with this , please assist.&lt;/P&gt;</description>
      <pubDate>Wed, 07 Jun 2017 09:35:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-Macro-Dates-and-Libname/m-p/364872#M86593</guid>
      <dc:creator>MadMax</dc:creator>
      <dc:date>2017-06-07T09:35:11Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Macro Dates and Libname</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-Macro-Dates-and-Libname/m-p/364875#M86594</link>
      <description>&lt;P&gt;This should work:&lt;/P&gt;
&lt;PRE&gt;data _null_;
  call symputx('D',put(intnx('month',today(),0,'b'),yymmdd10.));
run;
libname mylib 'C:\Users\folder1\Folder2\&amp;amp;d.';&lt;/PRE&gt;</description>
      <pubDate>Wed, 07 Jun 2017 09:52:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-Macro-Dates-and-Libname/m-p/364875#M86594</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2017-06-07T09:52:48Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Macro Dates and Libname</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-Macro-Dates-and-Libname/m-p/364883#M86596</link>
      <description>&lt;P&gt;Just what &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/45151"&gt;@RW9&lt;/a&gt; suggested, but with one little caveat:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;libname mylib "C:\Users\folder1\Folder2\&amp;amp;d.";&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Note the double quotes, single quotes would prevent the resolution of the macro variable.&lt;/P&gt;</description>
      <pubDate>Wed, 07 Jun 2017 10:06:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-Macro-Dates-and-Libname/m-p/364883#M86596</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2017-06-07T10:06:48Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Macro Dates and Libname</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-Macro-Dates-and-Libname/m-p/364888#M86597</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/11562"&gt;@Kurt_Bremser&lt;/a&gt;&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/45151"&gt;@RW9&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for the quick responses, i still struggle with the hardcoding of the 7th day in the same question.&lt;/P&gt;</description>
      <pubDate>Wed, 07 Jun 2017 10:15:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-Macro-Dates-and-Libname/m-p/364888#M86597</guid>
      <dc:creator>MadMax</dc:creator>
      <dc:date>2017-06-07T10:15:53Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Macro Dates and Libname</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-Macro-Dates-and-Libname/m-p/364889#M86598</link>
      <description>&lt;P&gt;Then you should determine the date like that:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data _null_;
mydate = input(put(today(),yymmn6.) !! '07',yymmdd8.);
call symput('d',put(mydate,yymmddd10.));
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 07 Jun 2017 10:20:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-Macro-Dates-and-Libname/m-p/364889#M86598</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2017-06-07T10:20:36Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Macro Dates and Libname</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-Macro-Dates-and-Libname/m-p/364891#M86599</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/11562"&gt;@Kurt_Bremser&lt;/a&gt;&lt;/P&gt;&lt;P&gt;Much appreciated!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 07 Jun 2017 10:29:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-Macro-Dates-and-Libname/m-p/364891#M86599</guid>
      <dc:creator>MadMax</dc:creator>
      <dc:date>2017-06-07T10:29:48Z</dc:date>
    </item>
  </channel>
</rss>

