<?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: different directory names between a Mac and a PC creates a workflow problem in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/different-directory-names-between-a-Mac-and-a-PC-creates-a/m-p/449741#M113239</link>
    <description>&lt;P&gt;I merged the two identical questions.&lt;/P&gt;</description>
    <pubDate>Thu, 29 Mar 2018 19:06:02 GMT</pubDate>
    <dc:creator>Kurt_Bremser</dc:creator>
    <dc:date>2018-03-29T19:06:02Z</dc:date>
    <item>
      <title>different directory names between a Mac and a PC creates a workflow problem</title>
      <link>https://communities.sas.com/t5/SAS-Programming/different-directory-names-between-a-Mac-and-a-PC-creates-a/m-p/449723#M113230</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;I have stored my sas programs and data in my dropbox subfolders&lt;/P&gt;
&lt;P&gt;so when I run SAS (using parallels), these files can be read using for example:&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;libname&lt;/SPAN&gt;&lt;SPAN&gt; home &lt;/SPAN&gt;'&lt;STRONG&gt;\\.psf\Home&lt;/STRONG&gt;\Dropbox (Partners HealthCare)\BWH Cardiac MR\Grants.......&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I also run sas on windows 10 PC, but the same file will have this directory&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;libname&lt;/SPAN&gt;&lt;SPAN&gt; home &lt;/SPAN&gt;'&lt;STRONG&gt;\\C:\User\rk64&lt;/STRONG&gt;\Dropbox (Partners HealthCare)\BWH Cardiac MR\Grants......&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have to change these directories if I want to use SAS sometimes on windows and sometimes on Mac. &amp;nbsp;Do you know of a way to not have to changes these directories each time?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;thanks and much appreciated&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;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 29 Mar 2018 16:44:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/different-directory-names-between-a-Mac-and-a-PC-creates-a/m-p/449723#M113230</guid>
      <dc:creator>rykwong</dc:creator>
      <dc:date>2018-03-29T16:44:33Z</dc:date>
    </item>
    <item>
      <title>directories to where I stored my files not the same on PC and on a Mac (running windows 10)</title>
      <link>https://communities.sas.com/t5/SAS-Programming/different-directory-names-between-a-Mac-and-a-PC-creates-a/m-p/449724#M113236</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;I have stored my sas programs and data in my dropbox subfolders&lt;/P&gt;
&lt;P&gt;so when I run SAS (using parallels), these files can be read using for example:&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;libname&lt;/SPAN&gt;&lt;SPAN&gt; home &lt;/SPAN&gt;'&lt;STRONG&gt;\\.psf\Home&lt;/STRONG&gt;\Dropbox (Partners HealthCare)\BWH Cardiac MR\Grants.......&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I also run sas on windows 10 PC, but the same file will have this directory&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;libname&lt;/SPAN&gt;&lt;SPAN&gt; home &lt;/SPAN&gt;'&lt;STRONG&gt;\\C:\User\rk64&lt;/STRONG&gt;\Dropbox (Partners HealthCare)\BWH Cardiac MR\Grants......&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have to change these directories if I want to use SAS sometimes on windows and sometimes on Mac. &amp;nbsp;Do you know of a way to not have to changes these directories each time?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;thanks and much appreciated&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;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 29 Mar 2018 16:45:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/different-directory-names-between-a-Mac-and-a-PC-creates-a/m-p/449724#M113236</guid>
      <dc:creator>rykwong</dc:creator>
      <dc:date>2018-03-29T16:45:57Z</dc:date>
    </item>
    <item>
      <title>Re: directories to where I stored my files not the same on PC and on a Mac (running windows 10)</title>
      <link>https://communities.sas.com/t5/SAS-Programming/different-directory-names-between-a-Mac-and-a-PC-creates-a/m-p/449726#M113237</link>
      <description>&lt;P&gt;I don't know of an easy way, but what I'll do for situations like this is create a macro variable at the top of your program that has the path to the files. Then use the macro variable in your program (make sure to use double quotes. Comment out the appropriate path based on where you are. Not ideal but works for me. Another option is to create this path in each system using your autoexec but this seems more understandable to me.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;*work;
%let path = \\.psf\Dropbox (Partners HealthCare)\....;

*home;
%let path = \\c:\user\dropbox ... ;


libname myfiles "&amp;amp;path.\data sets";&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;PS You should consider using Box instead of DropBox, because Box is HIPPAA compliant, but DropBox is not unless you have a separate set up. Its possible this has changed since the last time I checked as well.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 29 Mar 2018 16:57:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/different-directory-names-between-a-Mac-and-a-PC-creates-a/m-p/449726#M113237</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2018-03-29T16:57:21Z</dc:date>
    </item>
    <item>
      <title>Re: directories to where I stored my files not the same on PC and on a Mac (running windows 10)</title>
      <link>https://communities.sas.com/t5/SAS-Programming/different-directory-names-between-a-Mac-and-a-PC-creates-a/m-p/449732#M113238</link>
      <description>&lt;P&gt;If your using SAS EG then there is a automatic macro variable "_CLIENTMACHINE". Define the path based on this value and then it will be easy for you and can avoid editing the code.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I personally never tried, just my idea. Give a try and see and let rest of us know your findings.&lt;/P&gt;</description>
      <pubDate>Thu, 29 Mar 2018 17:33:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/different-directory-names-between-a-Mac-and-a-PC-creates-a/m-p/449732#M113238</guid>
      <dc:creator>SuryaKiran</dc:creator>
      <dc:date>2018-03-29T17:33:20Z</dc:date>
    </item>
    <item>
      <title>Re: different directory names between a Mac and a PC creates a workflow problem</title>
      <link>https://communities.sas.com/t5/SAS-Programming/different-directory-names-between-a-Mac-and-a-PC-creates-a/m-p/449736#M113234</link>
      <description>&lt;P&gt;One way would be to create and store a macro and, for each machine, have it run whenever you start SAS. e.g.:&lt;/P&gt;
&lt;PRE&gt;%macro sethome;
   %if &amp;amp;sysscp=WIN %then %do;
     libname home '\\C:\User\rk64\Dropbox (Partners HealthCare)\BWH Cardiac MR\Grants';
   %end;
   %else %do;
     libname home '\\.psf\Home\Dropbox (Partners HealthCare)\BWH Cardiac MR\Grants';
   %end;
%mend sethome;

%sethome
&lt;/PRE&gt;
&lt;P&gt;Art, CEO, AnalystFinder.com&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 29 Mar 2018 18:26:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/different-directory-names-between-a-Mac-and-a-PC-creates-a/m-p/449736#M113234</guid>
      <dc:creator>art297</dc:creator>
      <dc:date>2018-03-29T18:26:34Z</dc:date>
    </item>
    <item>
      <title>Re: different directory names between a Mac and a PC creates a workflow problem</title>
      <link>https://communities.sas.com/t5/SAS-Programming/different-directory-names-between-a-Mac-and-a-PC-creates-a/m-p/449741#M113239</link>
      <description>&lt;P&gt;I merged the two identical questions.&lt;/P&gt;</description>
      <pubDate>Thu, 29 Mar 2018 19:06:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/different-directory-names-between-a-Mac-and-a-PC-creates-a/m-p/449741#M113239</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2018-03-29T19:06:02Z</dc:date>
    </item>
    <item>
      <title>Re: different directory names between a Mac and a PC creates a workflow problem</title>
      <link>https://communities.sas.com/t5/SAS-Programming/different-directory-names-between-a-Mac-and-a-PC-creates-a/m-p/449796#M113244</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/16220"&gt;@rykwong&lt;/a&gt;&lt;/P&gt;
&lt;P&gt;Or to extend what &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13711"&gt;@art297&lt;/a&gt;&amp;nbsp;writes: Just define the environment dependent part via a macro or even simply via just creating a macro variabl like "root_path" in a place like the autoexec. That's quite a common approach.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Then in your code write all paths like "&amp;amp;root_path/&amp;lt;your path&amp;gt;";&lt;/P&gt;</description>
      <pubDate>Thu, 29 Mar 2018 22:50:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/different-directory-names-between-a-Mac-and-a-PC-creates-a/m-p/449796#M113244</guid>
      <dc:creator>Patrick</dc:creator>
      <dc:date>2018-03-29T22:50:29Z</dc:date>
    </item>
    <item>
      <title>Re: different directory names between a Mac and a PC creates a workflow problem</title>
      <link>https://communities.sas.com/t5/SAS-Programming/different-directory-names-between-a-Mac-and-a-PC-creates-a/m-p/450928#M113598</link>
      <description>&lt;P&gt;thanks everyone's kind help!&lt;/P&gt;</description>
      <pubDate>Wed, 04 Apr 2018 01:18:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/different-directory-names-between-a-Mac-and-a-PC-creates-a/m-p/450928#M113598</guid>
      <dc:creator>rykwong</dc:creator>
      <dc:date>2018-04-04T01:18:23Z</dc:date>
    </item>
  </channel>
</rss>

