<?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 directory name automaticly in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/How-to-change-directory-name-automaticly/m-p/246388#M46082</link>
    <description>&lt;P&gt;That's too bad....but we have no idea what that means.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 27 Jan 2016 16:29:02 GMT</pubDate>
    <dc:creator>Reeza</dc:creator>
    <dc:date>2016-01-27T16:29:02Z</dc:date>
    <item>
      <title>How to change directory name automaticly</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-change-directory-name-automaticly/m-p/246373#M46072</link>
      <description>&lt;P&gt;hi folks -&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have got the following directory and need to be changed automatically once I change the years.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;%let dir2=M:\Lib\T9099H0103Y\T9099H0103Y_CO;&lt;/P&gt;&lt;P&gt;libname coeficents "&amp;amp;dir2"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;%let DT=90;&lt;/P&gt;&lt;P&gt;%let UT=99;&lt;/P&gt;&lt;P&gt;%let DH=01;&lt;/P&gt;&lt;P&gt;%let UH=03;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;To be clearer, I want by changing DT, UT,DH and UH &amp;nbsp;the directory path changes. thanks&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 27 Jan 2016 16:05:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-change-directory-name-automaticly/m-p/246373#M46072</guid>
      <dc:creator>Moh</dc:creator>
      <dc:date>2016-01-27T16:05:43Z</dc:date>
    </item>
    <item>
      <title>Re: How to change directory name automaticly</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-change-directory-name-automaticly/m-p/246374#M46073</link>
      <description>&lt;P&gt;I'm not following, please explain your problem further.&lt;/P&gt;</description>
      <pubDate>Wed, 27 Jan 2016 16:10:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-change-directory-name-automaticly/m-p/246374#M46073</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2016-01-27T16:10:00Z</dc:date>
    </item>
    <item>
      <title>Re: How to change directory name automaticly</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-change-directory-name-automaticly/m-p/246377#M46075</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;For example I have got this dir path;&lt;/P&gt;&lt;P&gt;%let dir2=M:\Lib\T9099H0103Y;&lt;/P&gt;&lt;P&gt;libname coeficents "&amp;amp;dir2"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Now i want to change the path according to the following&amp;nbsp;items&lt;/P&gt;&lt;P&gt;%let DT=91;&lt;/P&gt;&lt;P&gt;%let UT=97;&lt;/P&gt;&lt;P&gt;%let DH=02;&lt;/P&gt;&lt;P&gt;%let UH=05;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;to have this new directory at the end;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;%let dir2=M:\Lib\T9197H0205Y;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 27 Jan 2016 16:14:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-change-directory-name-automaticly/m-p/246377#M46075</guid>
      <dc:creator>Moh</dc:creator>
      <dc:date>2016-01-27T16:14:56Z</dc:date>
    </item>
    <item>
      <title>Re: How to change directory name automaticly</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-change-directory-name-automaticly/m-p/246380#M46076</link>
      <description>&lt;P&gt;You will need to move the %LET statements so that they come before the directory path:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;%let DT=90;&lt;/P&gt;
&lt;P&gt;%let UT=99;&lt;/P&gt;
&lt;P&gt;%let DH=01;&lt;/P&gt;
&lt;P&gt;%let UH=03;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;%let dir2=M:\Lib\T&amp;amp;DT.&amp;amp;UT.H&amp;amp;DH.&amp;amp;UH.Y_CO;&lt;/P&gt;
&lt;P&gt;libname coeficents "&amp;amp;dir2";&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It's not clear from your post whether these are the exact changes to make to the directory path, but this gives you the technique to apply.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Good luck.&lt;/P&gt;</description>
      <pubDate>Wed, 27 Jan 2016 16:19:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-change-directory-name-automaticly/m-p/246380#M46076</guid>
      <dc:creator>Astounding</dc:creator>
      <dc:date>2016-01-27T16:19:23Z</dc:date>
    </item>
    <item>
      <title>Re: How to change directory name automaticly</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-change-directory-name-automaticly/m-p/246383#M46078</link>
      <description>&lt;P&gt;I don't understand still...I guess you could use a macro.But how did the mapping occur? How do you know to switch from&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Is it something like:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;%let dir2= M:\Lib\&amp;amp;DT.&amp;amp;UT.H&amp;amp;DH.&amp;amp;UH.Y;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;libname coeficents "&amp;amp;dir2"&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 27 Jan 2016 16:21:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-change-directory-name-automaticly/m-p/246383#M46078</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2016-01-27T16:21:41Z</dc:date>
    </item>
    <item>
      <title>Re: How to change directory name automaticly</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-change-directory-name-automaticly/m-p/246384#M46079</link>
      <description>&lt;P&gt;It's not working !!!!&lt;/P&gt;</description>
      <pubDate>Wed, 27 Jan 2016 16:24:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-change-directory-name-automaticly/m-p/246384#M46079</guid>
      <dc:creator>Moh</dc:creator>
      <dc:date>2016-01-27T16:24:04Z</dc:date>
    </item>
    <item>
      <title>Re: How to change directory name automaticly</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-change-directory-name-automaticly/m-p/246387#M46081</link>
      <description>&lt;P&gt;This is a short enough program that you should be able to post your program and the log from it.&lt;/P&gt;</description>
      <pubDate>Wed, 27 Jan 2016 16:28:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-change-directory-name-automaticly/m-p/246387#M46081</guid>
      <dc:creator>Astounding</dc:creator>
      <dc:date>2016-01-27T16:28:53Z</dc:date>
    </item>
    <item>
      <title>Re: How to change directory name automaticly</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-change-directory-name-automaticly/m-p/246388#M46082</link>
      <description>&lt;P&gt;That's too bad....but we have no idea what that means.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 27 Jan 2016 16:29:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-change-directory-name-automaticly/m-p/246388#M46082</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2016-01-27T16:29:02Z</dc:date>
    </item>
    <item>
      <title>Re: How to change directory name automaticly</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-change-directory-name-automaticly/m-p/246389#M46083</link>
      <description>&lt;P&gt;Your question is not clear. I have the results of about 100 types of models which are developed using different training samples and will be tested on different holdout samples. So I need to arrange them in different folders and name the folders based on training sample (e.g. T9199 ) which mean 1991 to 1999 and holdout sample (e.g. H0105) which means 2001 to 2005.&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, your answer helped me a lot.&amp;nbsp;thanks&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 27 Jan 2016 16:29:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-change-directory-name-automaticly/m-p/246389#M46083</guid>
      <dc:creator>Moh</dc:creator>
      <dc:date>2016-01-27T16:29:26Z</dc:date>
    </item>
    <item>
      <title>Re: How to change directory name automaticly</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-change-directory-name-automaticly/m-p/246390#M46084</link>
      <description>&lt;P&gt;A libname can only be 8 characters, your current name is too long.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You don't need two macro variables as well, can use one directly.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;%let DT=90;&lt;/P&gt;
&lt;P&gt;%let UT=99;&lt;/P&gt;
&lt;P&gt;%let DH=01;&lt;/P&gt;
&lt;P&gt;%let UH=03;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;libname mylib&amp;nbsp;&amp;nbsp;"M:\Lib\T&amp;amp;DT.&amp;amp;UT.H&amp;amp;DH.&amp;amp;UH.Y;";&lt;/P&gt;</description>
      <pubDate>Wed, 27 Jan 2016 16:31:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-change-directory-name-automaticly/m-p/246390#M46084</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2016-01-27T16:31:15Z</dc:date>
    </item>
    <item>
      <title>Re: How to change directory name automaticly</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-change-directory-name-automaticly/m-p/246393#M46087</link>
      <description>&lt;P&gt;Did you change the LIBNAME to 8 characters?&lt;/P&gt;</description>
      <pubDate>Wed, 27 Jan 2016 16:36:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-change-directory-name-automaticly/m-p/246393#M46087</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2016-01-27T16:36:58Z</dc:date>
    </item>
  </channel>
</rss>

