<?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: Default Directory when Opening SAS program in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Default-Directory-when-Opening-SAS-program/m-p/8215#M271</link>
    <description>&amp;gt; Another way to do this is to add some syntax to the&lt;BR /&gt;
&amp;gt; target line in the short cut used to call up SAS&lt;BR /&gt;
&amp;gt; (assuming a PC environment).  If it's done here, all&lt;BR /&gt;
&amp;gt; users can still have the same config file and you&lt;BR /&gt;
&amp;gt; don't lose your personal settings in the case of an&lt;BR /&gt;
&amp;gt; update or refresh. &lt;BR /&gt;
&amp;gt; &lt;BR /&gt;
&amp;gt; "C:\Program Files\SAS\SAS 9.1\sas.exe" -CONFIG&lt;BR /&gt;
&amp;gt; "F:\BusinessResults\QSRptsys\Programs\SAS_Other\SASV9.&lt;BR /&gt;
&amp;gt; CFG" -set sasfolder&lt;BR /&gt;
&amp;gt; "F:\BusinessResults\QSRptsys\Programs"&lt;BR /&gt;
&amp;gt; -sasInitialFolder "f:\BusinessResults\QSRptsys\"&lt;BR /&gt;
 &lt;BR /&gt;
I think the complexity and length of the demonstration command line shows why and how a config file can help.&lt;BR /&gt;
Typically I just create my config file overrides file (sasv9.cfg) in the folder where I launch my programs.&lt;BR /&gt;
  &lt;BR /&gt;
When I have control of the start-up command, I remove any -config parameters. Then SAS uses a complex technique to retrieve config files named sasv9.cfg from the folders &lt;BR /&gt;
1 install folder which holds sas.exe&lt;BR /&gt;
2 my home folder ( the "my documents" folder on windows )&lt;BR /&gt;
3 "current folder" &lt;BR /&gt;
 &lt;BR /&gt;
I recommend placing &lt;BR /&gt;
application specific option settings in the "current folder",&lt;BR /&gt;
personal preferences (like awstitle) in the "home folder"&lt;BR /&gt;
 &lt;BR /&gt;
There are other places from which SAS will retrieve start-up options and when I can't change the SAS start command, I use any of the alternatives - preference is to set the op.sys system environment (user) variable %sas_options% to &lt;BR /&gt;
-verbose -config "my_path\my_sasv9.cfg" -config '.\sasv9.cfg'&lt;BR /&gt;
(-verbose reveals a lot of setup information)&lt;BR /&gt;
 &lt;BR /&gt;
"How SAS Finds and Processes Configuration Files" is documented at &lt;A href="http://support.sas.com/documentation/cdl/en/hostwin/63285/HTML/default/viewer.htm#a000104286.htm#searchrules" target="_blank"&gt;http://support.sas.com/documentation/cdl/en/hostwin/63285/HTML/default/viewer.htm#a000104286.htm#searchrules&lt;/A&gt;&lt;BR /&gt;
 &lt;BR /&gt;
peterC</description>
    <pubDate>Wed, 29 Sep 2010 11:40:31 GMT</pubDate>
    <dc:creator>Peter_C</dc:creator>
    <dc:date>2010-09-29T11:40:31Z</dc:date>
    <item>
      <title>Default Directory when Opening SAS program</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Default-Directory-when-Opening-SAS-program/m-p/8210#M266</link>
      <description>When you open a SAS program (File -&amp;gt; Open Program...), by default, you start looking for the program in the Sasuser directory.  Is there a way to change the default behavior by specifying an alternate folder to begin the search?&lt;BR /&gt;
&lt;BR /&gt;
Thanks!</description>
      <pubDate>Tue, 28 Sep 2010 14:21:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Default-Directory-when-Opening-SAS-program/m-p/8210#M266</guid>
      <dc:creator>polingjw</dc:creator>
      <dc:date>2010-09-28T14:21:30Z</dc:date>
    </item>
    <item>
      <title>Re: Default Directory when Opening SAS program</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Default-Directory-when-Opening-SAS-program/m-p/8211#M267</link>
      <description>Never mind, I figured it out by modifying the config file.  Thanks again.</description>
      <pubDate>Tue, 28 Sep 2010 14:28:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Default-Directory-when-Opening-SAS-program/m-p/8211#M267</guid>
      <dc:creator>polingjw</dc:creator>
      <dc:date>2010-09-28T14:28:33Z</dc:date>
    </item>
    <item>
      <title>Re: Default Directory when Opening SAS program</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Default-Directory-when-Opening-SAS-program/m-p/8212#M268</link>
      <description>How is it done?</description>
      <pubDate>Tue, 28 Sep 2010 16:27:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Default-Directory-when-Opening-SAS-program/m-p/8212#M268</guid>
      <dc:creator>SASPhile</dc:creator>
      <dc:date>2010-09-28T16:27:06Z</dc:date>
    </item>
    <item>
      <title>Re: Default Directory when Opening SAS program</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Default-Directory-when-Opening-SAS-program/m-p/8213#M269</link>
      <description>Enter the following statement at the top of the config file, substituting for the desired directory:&lt;BR /&gt;
&lt;BR /&gt;
- SASINITIALFOLDER = 'directory'</description>
      <pubDate>Tue, 28 Sep 2010 19:05:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Default-Directory-when-Opening-SAS-program/m-p/8213#M269</guid>
      <dc:creator>polingjw</dc:creator>
      <dc:date>2010-09-28T19:05:13Z</dc:date>
    </item>
    <item>
      <title>Re: Default Directory when Opening SAS program</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Default-Directory-when-Opening-SAS-program/m-p/8214#M270</link>
      <description>Another way to do this is to add some syntax to the target line in the short cut used to call up SAS (assuming a PC environment).  If it's done here, all users can still have the same config file and you don't lose your personal settings in the case of an update or refresh. &lt;BR /&gt;
&lt;BR /&gt;
"C:\Program Files\SAS\SAS 9.1\sas.exe" -CONFIG "F:\BusinessResults\QSRptsys\Programs\SAS_Other\SASV9.CFG" -set sasfolder "F:\BusinessResults\QSRptsys\Programs" -sasInitialFolder "f:\BusinessResults\QSRptsys\"</description>
      <pubDate>Tue, 28 Sep 2010 20:18:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Default-Directory-when-Opening-SAS-program/m-p/8214#M270</guid>
      <dc:creator>Bill</dc:creator>
      <dc:date>2010-09-28T20:18:03Z</dc:date>
    </item>
    <item>
      <title>Re: Default Directory when Opening SAS program</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Default-Directory-when-Opening-SAS-program/m-p/8215#M271</link>
      <description>&amp;gt; Another way to do this is to add some syntax to the&lt;BR /&gt;
&amp;gt; target line in the short cut used to call up SAS&lt;BR /&gt;
&amp;gt; (assuming a PC environment).  If it's done here, all&lt;BR /&gt;
&amp;gt; users can still have the same config file and you&lt;BR /&gt;
&amp;gt; don't lose your personal settings in the case of an&lt;BR /&gt;
&amp;gt; update or refresh. &lt;BR /&gt;
&amp;gt; &lt;BR /&gt;
&amp;gt; "C:\Program Files\SAS\SAS 9.1\sas.exe" -CONFIG&lt;BR /&gt;
&amp;gt; "F:\BusinessResults\QSRptsys\Programs\SAS_Other\SASV9.&lt;BR /&gt;
&amp;gt; CFG" -set sasfolder&lt;BR /&gt;
&amp;gt; "F:\BusinessResults\QSRptsys\Programs"&lt;BR /&gt;
&amp;gt; -sasInitialFolder "f:\BusinessResults\QSRptsys\"&lt;BR /&gt;
 &lt;BR /&gt;
I think the complexity and length of the demonstration command line shows why and how a config file can help.&lt;BR /&gt;
Typically I just create my config file overrides file (sasv9.cfg) in the folder where I launch my programs.&lt;BR /&gt;
  &lt;BR /&gt;
When I have control of the start-up command, I remove any -config parameters. Then SAS uses a complex technique to retrieve config files named sasv9.cfg from the folders &lt;BR /&gt;
1 install folder which holds sas.exe&lt;BR /&gt;
2 my home folder ( the "my documents" folder on windows )&lt;BR /&gt;
3 "current folder" &lt;BR /&gt;
 &lt;BR /&gt;
I recommend placing &lt;BR /&gt;
application specific option settings in the "current folder",&lt;BR /&gt;
personal preferences (like awstitle) in the "home folder"&lt;BR /&gt;
 &lt;BR /&gt;
There are other places from which SAS will retrieve start-up options and when I can't change the SAS start command, I use any of the alternatives - preference is to set the op.sys system environment (user) variable %sas_options% to &lt;BR /&gt;
-verbose -config "my_path\my_sasv9.cfg" -config '.\sasv9.cfg'&lt;BR /&gt;
(-verbose reveals a lot of setup information)&lt;BR /&gt;
 &lt;BR /&gt;
"How SAS Finds and Processes Configuration Files" is documented at &lt;A href="http://support.sas.com/documentation/cdl/en/hostwin/63285/HTML/default/viewer.htm#a000104286.htm#searchrules" target="_blank"&gt;http://support.sas.com/documentation/cdl/en/hostwin/63285/HTML/default/viewer.htm#a000104286.htm#searchrules&lt;/A&gt;&lt;BR /&gt;
 &lt;BR /&gt;
peterC</description>
      <pubDate>Wed, 29 Sep 2010 11:40:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Default-Directory-when-Opening-SAS-program/m-p/8215#M271</guid>
      <dc:creator>Peter_C</dc:creator>
      <dc:date>2010-09-29T11:40:31Z</dc:date>
    </item>
  </channel>
</rss>

