<?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: Sas Server: Changing default location where x commands are executed in SAS Enterprise Guide</title>
    <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Sas-Server-Changing-default-location-where-x-commands-are/m-p/172805#M13232</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thank you both for your responses -- yes, the x 'cd c:\temp' works but then it requires someone including this prior to creating files in a place they shouldn't.&amp;nbsp; That might be a temporary work around as an item in the autoexec, however the default behavior is what I'm trying to adjust.&amp;nbsp; Also the issue here is that our EG runs on our PC clients and connects to SAS on the server, so this seems to be a server setting.&amp;nbsp; The WORK and SASUSER directors are being created with no problems, and they're different from the default location where the x commands are executed.&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 09 Apr 2014 00:06:02 GMT</pubDate>
    <dc:creator>civelldr</dc:creator>
    <dc:date>2014-04-09T00:06:02Z</dc:date>
    <item>
      <title>Sas Server: Changing default location where x commands are executed</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Sas-Server-Changing-default-location-where-x-commands-are/m-p/172802#M13229</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all, apologies if this has been discussed, but a search didn't turn up any leads.&amp;nbsp; We have the x command authorized on our SAS server and currently trying to understand how SAS is setting the default location -- it's almost like how you would specify a 'start in..' location when running a batch program.&amp;nbsp; Right now if I fire up EG and run:&amp;nbsp; &lt;SPAN style="font-family: 'courier new', courier;"&gt;x "mkdir testdir";&lt;/SPAN&gt; this directory will be created in&lt;SPAN style="font-family: 'courier new', courier;"&gt; C:\SAS\SASConfig\Lev1\SASApp &lt;/SPAN&gt;On the server.&amp;nbsp; Would love it if this default location could be c:\temp, for instance.&amp;nbsp; any help much appreciated!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Apr 2014 21:38:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Sas-Server-Changing-default-location-where-x-commands-are/m-p/172802#M13229</guid>
      <dc:creator>civelldr</dc:creator>
      <dc:date>2014-04-08T21:38:48Z</dc:date>
    </item>
    <item>
      <title>Re: Sas Server: Changing default location where x commands are executed</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Sas-Server-Changing-default-location-where-x-commands-are/m-p/172803#M13230</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;did you try? &lt;/P&gt;&lt;P&gt;x 'cd c:\temp';&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Apr 2014 22:06:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Sas-Server-Changing-default-location-where-x-commands-are/m-p/172803#M13230</guid>
      <dc:creator>data_null__</dc:creator>
      <dc:date>2014-04-08T22:06:22Z</dc:date>
    </item>
    <item>
      <title>Re: Sas Server: Changing default location where x commands are executed</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Sas-Server-Changing-default-location-where-x-commands-are/m-p/172804#M13231</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you right click on the icon that opens the program, and select properties, you can look for the full target that the program opens under.&amp;nbsp; If you were to add the following option&lt;/P&gt;&lt;P&gt;it will change the work folder location, and x commands will default to this location as well.&lt;/P&gt;&lt;P&gt;-work "C:\temp"&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Apr 2014 23:03:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Sas-Server-Changing-default-location-where-x-commands-are/m-p/172804#M13231</guid>
      <dc:creator>nathan_owens</dc:creator>
      <dc:date>2014-04-08T23:03:35Z</dc:date>
    </item>
    <item>
      <title>Re: Sas Server: Changing default location where x commands are executed</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Sas-Server-Changing-default-location-where-x-commands-are/m-p/172805#M13232</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thank you both for your responses -- yes, the x 'cd c:\temp' works but then it requires someone including this prior to creating files in a place they shouldn't.&amp;nbsp; That might be a temporary work around as an item in the autoexec, however the default behavior is what I'm trying to adjust.&amp;nbsp; Also the issue here is that our EG runs on our PC clients and connects to SAS on the server, so this seems to be a server setting.&amp;nbsp; The WORK and SASUSER directors are being created with no problems, and they're different from the default location where the x commands are executed.&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Apr 2014 00:06:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Sas-Server-Changing-default-location-where-x-commands-are/m-p/172805#M13232</guid>
      <dc:creator>civelldr</dc:creator>
      <dc:date>2014-04-09T00:06:02Z</dc:date>
    </item>
    <item>
      <title>Re: Sas Server: Changing default location where x commands are executed</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Sas-Server-Changing-default-location-where-x-commands-are/m-p/172806#M13233</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Known design flaw of SAS. See: &lt;A href="http://support.sas.com/kb/50/345.html" title="http://support.sas.com/kb/50/345.html"&gt;50345 - Changing the current working directory for the SAS® Workspace Server&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Ask you platform admin to correct it as indicated by this note. The description is voor Unix translation to Windows is easy. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Apr 2014 05:28:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Sas-Server-Changing-default-location-where-x-commands-are/m-p/172806#M13233</guid>
      <dc:creator>jakarman</dc:creator>
      <dc:date>2014-04-09T05:28:24Z</dc:date>
    </item>
    <item>
      <title>Re: Sas Server: Changing default location where x commands are executed</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Sas-Server-Changing-default-location-where-x-commands-are/m-p/172807#M13234</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You have to keep in mind that X 'cd ....'; will not change the working directory of the SAS workspace server, but the working directory of the shell that the workspace server invokes to execute what was given to the X statement. Once this is complete, the shell terminates and the cd is history.&lt;/P&gt;&lt;P&gt;If you need to change to a directory in order to execute something there, you need to do it in one action:&lt;/P&gt;&lt;P&gt;X 'cd xxxx;do-whatever-you-need-to-do';&lt;/P&gt;&lt;P&gt;That way do-whatever-you-need-to-do actually runs in xxxx.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IMO also it is a design flaw that SAS does not (per default) change to the user's home directory before invoking the workspace server&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Apr 2014 07:48:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Sas-Server-Changing-default-location-where-x-commands-are/m-p/172807#M13234</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2014-04-09T07:48:45Z</dc:date>
    </item>
  </channel>
</rss>

