<?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: How to change  libname folder to current year in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/How-to-change-libname-folder-to-current-year/m-p/319372#M70130</link>
    <description>Thank you, it's worked wonderfully.&lt;BR /&gt;</description>
    <pubDate>Thu, 15 Dec 2016 19:39:06 GMT</pubDate>
    <dc:creator>BonnaryW</dc:creator>
    <dc:date>2016-12-15T19:39:06Z</dc:date>
    <item>
      <title>How to change  libname folder to current year</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-change-libname-folder-to-current-year/m-p/319362#M70124</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We have a folder with year (folder2014, folder2015) and every new year, we have to modify the libname to read the current year. Is there a way to subsutiute the year with the %sysfunc(year("&amp;amp;sysdate"d));&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;LIBNAME '/SASLIBRARY/SASDATA/folder||&amp;amp;syear';&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you,&lt;/P&gt;&lt;P&gt;Bonnary&lt;/P&gt;</description>
      <pubDate>Thu, 15 Dec 2016 18:54:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-change-libname-folder-to-current-year/m-p/319362#M70124</guid>
      <dc:creator>BonnaryW</dc:creator>
      <dc:date>2016-12-15T18:54:59Z</dc:date>
    </item>
    <item>
      <title>Re: How to change  libname folder to current year</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-change-libname-folder-to-current-year/m-p/319369#M70127</link>
      <description>&lt;P&gt;It shouldn't be a problem, but you will need to switch the double quotes and single quotes.&amp;nbsp; For example:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;LIBNAME "/SASLIBRARY/SASDATA/folder%sysfunc(year('&amp;amp;sysdate'd))";&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If it doesn't work as is, there should be an easy fix.&amp;nbsp; Give it a shot and see what you get.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 15 Dec 2016 19:26:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-change-libname-folder-to-current-year/m-p/319369#M70127</guid>
      <dc:creator>Astounding</dc:creator>
      <dc:date>2016-12-15T19:26:38Z</dc:date>
    </item>
    <item>
      <title>Re: How to change  libname folder to current year</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-change-libname-folder-to-current-year/m-p/319372#M70130</link>
      <description>Thank you, it's worked wonderfully.&lt;BR /&gt;</description>
      <pubDate>Thu, 15 Dec 2016 19:39:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-change-libname-folder-to-current-year/m-p/319372#M70130</guid>
      <dc:creator>BonnaryW</dc:creator>
      <dc:date>2016-12-15T19:39:06Z</dc:date>
    </item>
  </channel>
</rss>

