<?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: Autoexec in SAS Studio</title>
    <link>https://communities.sas.com/t5/SAS-Studio/Autoexec/m-p/388063#M3254</link>
    <description>&lt;P&gt;I'm using SAS UE.&lt;/P&gt;
&lt;P&gt;Change your code to:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%let path=/folders/shortcuts/myfolders/;
libname orion "/folders/shortcuts/myfolders/";&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Tue, 15 Aug 2017 06:16:31 GMT</pubDate>
    <dc:creator>Shmuel</dc:creator>
    <dc:date>2017-08-15T06:16:31Z</dc:date>
    <item>
      <title>Autoexec</title>
      <link>https://communities.sas.com/t5/SAS-Studio/Autoexec/m-p/388058#M3253</link>
      <description>&lt;P&gt;I'm trying to assign &amp;nbsp;a library at startup, so added the following to the autoexec file:&lt;/P&gt;&lt;P&gt;&lt;EM&gt;%let path=/folders/myfolders/;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;libname orion "/folders/myfolders/";&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;run;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However the autoexec doesnt seem to run upon startup in SAS studio University Edition, &amp;nbsp;are there any startup logs I can look at?&lt;/P&gt;&lt;P&gt;After startup, if I go to Edit autoexec file and select run, then the library is assigned.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Note: I'm a newbee so it's probably something stupid.&lt;/P&gt;</description>
      <pubDate>Tue, 15 Aug 2017 05:49:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/Autoexec/m-p/388058#M3253</guid>
      <dc:creator>tomcarey</dc:creator>
      <dc:date>2017-08-15T05:49:28Z</dc:date>
    </item>
    <item>
      <title>Re: Autoexec</title>
      <link>https://communities.sas.com/t5/SAS-Studio/Autoexec/m-p/388063#M3254</link>
      <description>&lt;P&gt;I'm using SAS UE.&lt;/P&gt;
&lt;P&gt;Change your code to:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%let path=/folders/shortcuts/myfolders/;
libname orion "/folders/shortcuts/myfolders/";&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 15 Aug 2017 06:16:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/Autoexec/m-p/388063#M3254</guid>
      <dc:creator>Shmuel</dc:creator>
      <dc:date>2017-08-15T06:16:31Z</dc:date>
    </item>
    <item>
      <title>Re: Autoexec</title>
      <link>https://communities.sas.com/t5/SAS-Studio/Autoexec/m-p/388181#M3263</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/88384"&gt;@Shmuel&lt;/a&gt;&amp;nbsp;Thats only necessary if you've incorrectly created the myfolders for some reason.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/158973"&gt;@tomcarey&lt;/a&gt;&amp;nbsp;How does it not work? Is the library not assigned? Note that what you're doing there is creating a macro variable that's not used and assigning a library. If this is for one of the courses I think the path should be longer and have the course folder name as well.&lt;/P&gt;</description>
      <pubDate>Tue, 15 Aug 2017 14:56:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/Autoexec/m-p/388181#M3263</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2017-08-15T14:56:35Z</dc:date>
    </item>
    <item>
      <title>Re: Autoexec</title>
      <link>https://communities.sas.com/t5/SAS-Studio/Autoexec/m-p/388189#M3264</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13879"&gt;@Reeza&lt;/a&gt;, using linux, I have defined the directory as:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &lt;STRONG&gt;&amp;nbsp;~/SASUniversityEdition/myfolders&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;did I miss anything ?&lt;/P&gt;</description>
      <pubDate>Tue, 15 Aug 2017 15:19:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/Autoexec/m-p/388189#M3264</guid>
      <dc:creator>Shmuel</dc:creator>
      <dc:date>2017-08-15T15:19:48Z</dc:date>
    </item>
    <item>
      <title>Re: Autoexec</title>
      <link>https://communities.sas.com/t5/SAS-Studio/Autoexec/m-p/388190#M3265</link>
      <description>&lt;P&gt;Is it all lower case in your computer as well? And did you set the shared path to SASUE or myfolders?&lt;/P&gt;</description>
      <pubDate>Tue, 15 Aug 2017 15:21:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/Autoexec/m-p/388190#M3265</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2017-08-15T15:21:32Z</dc:date>
    </item>
    <item>
      <title>Re: Autoexec</title>
      <link>https://communities.sas.com/t5/SAS-Studio/Autoexec/m-p/388362#M3266</link>
      <description>&lt;P&gt;thanks for the responses.&lt;/P&gt;&lt;P&gt;I bring up SAS studio from scratch (including starting the Oracle VM VirtualBox), then I select a program that the teacher gave us,&lt;/P&gt;&lt;P&gt;it is listed in the right hand side of SAS Studio and lives in the myfolders directory on my server.&lt;/P&gt;&lt;P&gt;I try to run the prgram but it does not work.&lt;/P&gt;&lt;P&gt;I then go to Edit Autoexec file, select run, (it runs successfully) then I go back and re-run the program and this time it runs.&lt;/P&gt;&lt;P&gt;So I'm guessing the autoexec did not run, or am i missing something?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is one of the sampels I tried:&lt;/P&gt;&lt;PRE&gt;/********************************************************************/&lt;BR /&gt; /* This program uses an INFILE statement to read a raw data file.   */&lt;BR /&gt; /* The INFILE statement includes a full path for Microsoft Windows. */&lt;BR /&gt; /*                                                                  */&lt;BR /&gt; /* For UNIX or SAS onDemand:                                        */&lt;BR /&gt; /*      Replace  the INFILE statement with the following statement: */&lt;BR /&gt; /*               infile "&amp;amp;path/newemps.csv" dlm=',';                */&lt;BR /&gt; /*                                                                  */&lt;BR /&gt; /* For  z/OS:                                                       */&lt;BR /&gt; /*      Replace  the INFILE statement with the following statement: */&lt;BR /&gt; /*               infile "&amp;amp;path..rawdata(newemps)" dlm=',';          */&lt;BR /&gt; /********************************************************************/&lt;BR /&gt;&lt;BR /&gt;daat work.newsalesemps;&lt;BR /&gt;	length First_Name $ 12 &lt;BR /&gt;          Last_Name $ 18 Job_Title $ 25;&lt;BR /&gt;   infile "&amp;amp;path\newemps.csv" dlm=',';   &lt;BR /&gt;   input First_Name $ Last_Name $  &lt;BR /&gt;         Job_Title $ Salary;&lt;BR /&gt;run;&lt;BR /&gt;&lt;BR /&gt;proc print data=work.newsalesemps&lt;BR /&gt;run;&lt;BR /&gt;&lt;BR /&gt;proc means data=work.newsalesemps average min;&lt;BR /&gt;   var Salary;&lt;BR /&gt;run;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thanks&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 16 Aug 2017 03:09:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/Autoexec/m-p/388362#M3266</guid>
      <dc:creator>tomcarey</dc:creator>
      <dc:date>2017-08-16T03:09:55Z</dc:date>
    </item>
    <item>
      <title>Re: Autoexec</title>
      <link>https://communities.sas.com/t5/SAS-Studio/Autoexec/m-p/388363#M3267</link>
      <description>yes lower case, shared path set to myfolders&lt;BR /&gt;</description>
      <pubDate>Wed, 16 Aug 2017 03:17:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/Autoexec/m-p/388363#M3267</guid>
      <dc:creator>tomcarey</dc:creator>
      <dc:date>2017-08-16T03:17:30Z</dc:date>
    </item>
    <item>
      <title>Re: Autoexec</title>
      <link>https://communities.sas.com/t5/SAS-Studio/Autoexec/m-p/388368#M3268</link>
      <description>&lt;P&gt;You have just two lines in your AUTOEXEC.&lt;/P&gt;
&lt;P&gt;Check, immediate after entering SAS Studio, by:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;1) %PUT PATH = &amp;amp;path; &amp;nbsp;&amp;gt;&amp;gt;&amp;gt; check the log. What do you see ?&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;Have you got a message that macro variable PATH is not resolved?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;2) On left you have Libraries. Expand it - is there a library named ORION ?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 16 Aug 2017 04:44:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/Autoexec/m-p/388368#M3268</guid>
      <dc:creator>Shmuel</dc:creator>
      <dc:date>2017-08-16T04:44:55Z</dc:date>
    </item>
    <item>
      <title>Re: Autoexec</title>
      <link>https://communities.sas.com/t5/SAS-Studio/Autoexec/m-p/388678#M3272</link>
      <description>Here is what I get - it shows PATH as blank:&lt;BR /&gt;62 %PUT PATH = &amp;amp;path;&lt;BR /&gt;PATH =&lt;BR /&gt;&lt;BR /&gt;Yes there is a library called ORION.&lt;BR /&gt;The commands work when run from the Autoexec run dialog, so I assume they would break if they couldn't find Orion. However, the PATH variable being blank may be the clue. I'll investigate that further.&lt;BR /&gt;THanks</description>
      <pubDate>Thu, 17 Aug 2017 02:42:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/Autoexec/m-p/388678#M3272</guid>
      <dc:creator>tomcarey</dc:creator>
      <dc:date>2017-08-17T02:42:31Z</dc:date>
    </item>
    <item>
      <title>Re: Autoexec</title>
      <link>https://communities.sas.com/t5/SAS-Studio/Autoexec/m-p/388688#M3273</link>
      <description>&lt;P&gt;Try adding &lt;STRONG&gt;%GLOBAL PATH; &amp;nbsp;&lt;/STRONG&gt;in the autoexec - line before the %LET&lt;/P&gt;
&lt;P&gt;and check again after entering a new session.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Does it help?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 17 Aug 2017 04:25:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/Autoexec/m-p/388688#M3273</guid>
      <dc:creator>Shmuel</dc:creator>
      <dc:date>2017-08-17T04:25:18Z</dc:date>
    </item>
    <item>
      <title>Re: Autoexec</title>
      <link>https://communities.sas.com/t5/SAS-Studio/Autoexec/m-p/389318#M3288</link>
      <description>Hi Shmuel,&lt;BR /&gt;Unfortunately that also did not work.&lt;BR /&gt;Is there any logs I can look at to try and find out what's happening?&lt;BR /&gt;thanks</description>
      <pubDate>Sat, 19 Aug 2017 14:42:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/Autoexec/m-p/389318#M3288</guid>
      <dc:creator>tomcarey</dc:creator>
      <dc:date>2017-08-19T14:42:34Z</dc:date>
    </item>
    <item>
      <title>Re: Autoexec</title>
      <link>https://communities.sas.com/t5/SAS-Studio/Autoexec/m-p/389323#M3289</link>
      <description>&lt;P&gt;I'm using SAS UE in linux. After checking several options I found:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;1) You are right, %LET PATH doesn't work&lt;/P&gt;
&lt;P&gt;2) Changing the macro variable to ROOT or MYPATH (and probably ant other valid name) &lt;STRONG&gt;did work.&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It seems that sas studio uses PATH for its own needs when launching a new session&amp;nbsp;&lt;/P&gt;
&lt;P&gt;and then resets it.&lt;/P&gt;</description>
      <pubDate>Sat, 19 Aug 2017 15:32:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/Autoexec/m-p/389323#M3289</guid>
      <dc:creator>Shmuel</dc:creator>
      <dc:date>2017-08-19T15:32:35Z</dc:date>
    </item>
  </channel>
</rss>

