<?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 adjust current folder when clicking on SAS dataset to open SAS in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/How-to-adjust-current-folder-when-clicking-on-SAS-dataset-to/m-p/477284#M286165</link>
    <description>&lt;P&gt;I'm pretty certain I'm using PC/SAS on a Windows workstation, version 9.4.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Yes, it seems like I need a way to override the default behavior after I double click on a file as a means of opening SAS (or starting a session). I am confused as to why the current folder assignment varies depending on how I start up the program. If I start SAS by clicking the icon in my Start menu, the current folder is my C:\Users\JCarr folder (which contains my autoexec file). If I start SAS by double clicking a SAS dataset file sitting one of our network servers, the current folder becomes C:\windows\system32.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'll take a look at those reference documents. Thanks for the help!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Jason&lt;/P&gt;</description>
    <pubDate>Thu, 12 Jul 2018 00:14:51 GMT</pubDate>
    <dc:creator>jason_253</dc:creator>
    <dc:date>2018-07-12T00:14:51Z</dc:date>
    <item>
      <title>How to adjust current folder when clicking on SAS dataset to open SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-adjust-current-folder-when-clicking-on-SAS-dataset-to/m-p/476960#M286161</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am wondering whether it is possible to configure my SAS in a way that allows me to double click on a SAS dataset while SAS is closed and get the same current folder (once SAS starts up) as I get when I start SAS by clicking on the icon in my start menu? The latter current folder location is better because that is where my autoexec file is located. Some SAS datasets I work with require specific SAS formats in order to view the contents, and the autoexec file tells SAS where those correct Format Catalogs are located on our network. Otherwise,, I get an error message saying the table cannot be opened.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Jason&lt;/P&gt;</description>
      <pubDate>Tue, 10 Jul 2018 23:05:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-adjust-current-folder-when-clicking-on-SAS-dataset-to/m-p/476960#M286161</guid>
      <dc:creator>jason_253</dc:creator>
      <dc:date>2018-07-10T23:05:14Z</dc:date>
    </item>
    <item>
      <title>Re: How to adjust current folder when clicking on SAS dataset to open SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-adjust-current-folder-when-clicking-on-SAS-dataset-to/m-p/476967#M286162</link>
      <description>&lt;P&gt;You probably want to add some automatic libraries or working folder via the configuration file (cfg file).&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/220343"&gt;@jason_253&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am wondering whether it is possible to configure my SAS in a way that allows me to double click on a SAS dataset while SAS is closed and get the same current folder (once SAS starts up) as I get when I start SAS by clicking on the icon in my start menu? The latter current folder location is better because that is where my autoexec file is located. Some SAS datasets I work with require specific SAS formats in order to view the contents, and the autoexec file tells SAS where those correct Format Catalogs are located on our network. Otherwise,, I get an error message saying the table cannot be opened.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Jason&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 11 Jul 2018 01:32:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-adjust-current-folder-when-clicking-on-SAS-dataset-to/m-p/476967#M286162</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2018-07-11T01:32:22Z</dc:date>
    </item>
    <item>
      <title>Re: How to adjust current folder when clicking on SAS dataset to open SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-adjust-current-folder-when-clicking-on-SAS-dataset-to/m-p/476971#M286163</link>
      <description>&lt;P&gt;Jason,&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;What is your "SAS" - PC/SAS on a Windows workstation (presumably), Enterprise Guide, SAS/Studio, SAS University Edition, other? And what version?&lt;/LI&gt;
&lt;LI&gt;You want the SAS current folder (SASINITIALFOLDER option?) to be set to the folder containing the data set you double-click on. Or is that the default behaviour after a double-click but you want to override that?&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;AUTOEXEC defaults first to the current working folder, then the %PATH%, so you can probably "force" a preferred AUTOEXEC by adding to your PATH environment variable.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Useful links:&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;&lt;A href="http://support.sas.com/kb/19/244.html" target="_blank"&gt;Usage Note 19244: Where SAS® software searches for an AUTOEXEC.SAS file on Microsoft Windows operating systems&lt;/A&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;A href="http://support.sas.com/documentation/cdl/en/hostwin/69955/HTML/default/viewer.htm#p0bmj7wjme32ayn1h4wim7trkhp6.htm" target="_blank"&gt;Files Used by SAS - SAS 9.4 Companion for Windows, Fifth Edition&lt;/A&gt;&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Some good forum presentations:&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;&lt;A href="http://support.sas.com/resources/papers/proceedings17/1190-2017.pdf" target="_blank"&gt;Paper 1199-2017: Using SASv9.cfg, autoexec.sas, SAS Registry, and Options to Set Up Base SAS. Peter Eberhardt, Fernwood Consulting Group Inc.&lt;/A&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;A href="http://www2.sas.com/proceedings/forum2007/063-2007.pdf" target="_blank"&gt;Paper 063-2007: Customizing Your SAS Initialization. George J. Hurley, The Procter and Gamble Company.&lt;/A&gt;&lt;/LI&gt;
&lt;/UL&gt;</description>
      <pubDate>Wed, 11 Jul 2018 01:55:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-adjust-current-folder-when-clicking-on-SAS-dataset-to/m-p/476971#M286163</guid>
      <dc:creator>AndrewHowell</dc:creator>
      <dc:date>2018-07-11T01:55:34Z</dc:date>
    </item>
    <item>
      <title>Re: How to adjust current folder when clicking on SAS dataset to open SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-adjust-current-folder-when-clicking-on-SAS-dataset-to/m-p/477282#M286164</link>
      <description>&lt;P&gt;OK, thanks for the response. I'll check that out.&lt;/P&gt;</description>
      <pubDate>Wed, 11 Jul 2018 23:53:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-adjust-current-folder-when-clicking-on-SAS-dataset-to/m-p/477282#M286164</guid>
      <dc:creator>jason_253</dc:creator>
      <dc:date>2018-07-11T23:53:58Z</dc:date>
    </item>
    <item>
      <title>Re: How to adjust current folder when clicking on SAS dataset to open SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-adjust-current-folder-when-clicking-on-SAS-dataset-to/m-p/477284#M286165</link>
      <description>&lt;P&gt;I'm pretty certain I'm using PC/SAS on a Windows workstation, version 9.4.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Yes, it seems like I need a way to override the default behavior after I double click on a file as a means of opening SAS (or starting a session). I am confused as to why the current folder assignment varies depending on how I start up the program. If I start SAS by clicking the icon in my Start menu, the current folder is my C:\Users\JCarr folder (which contains my autoexec file). If I start SAS by double clicking a SAS dataset file sitting one of our network servers, the current folder becomes C:\windows\system32.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'll take a look at those reference documents. Thanks for the help!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Jason&lt;/P&gt;</description>
      <pubDate>Thu, 12 Jul 2018 00:14:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-adjust-current-folder-when-clicking-on-SAS-dataset-to/m-p/477284#M286165</guid>
      <dc:creator>jason_253</dc:creator>
      <dc:date>2018-07-12T00:14:51Z</dc:date>
    </item>
  </channel>
</rss>

