<?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 Using SASAUTOS in SAS studio in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Using-SASAUTOS-in-SAS-studio/m-p/682618#M206630</link>
    <description>&lt;P&gt;HI&lt;/P&gt;&lt;P&gt;Hope you are very well&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have historically always used SAS windows PC to run SAS and added a SASAUTOS option in the autoexcec to set the autocall macros when SAS starts up&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However moving to SAS studio I am trying to use a similar options i.e.&lt;/P&gt;&lt;P&gt;options mautosource sasautos='mydir/test';&lt;/P&gt;&lt;P&gt;However when calling the macro contained in the folder e.g.&lt;/P&gt;&lt;P&gt;%starting;&lt;/P&gt;&lt;P&gt;I get&amp;nbsp; :&amp;nbsp;&lt;SPAN&gt;WARNING: Apparent invocation of macro STARTING not resolved &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;So it does not appear the macro has been compiled. I've double checked file path and macro itself and can't find an issue at all&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I don't have access to the config files etc so was hoping&amp;nbsp;the SASAUTOS option would work for me&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Many thanks&amp;nbsp;in advance&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Ben&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 09 Sep 2020 12:52:10 GMT</pubDate>
    <dc:creator>bkmant</dc:creator>
    <dc:date>2020-09-09T12:52:10Z</dc:date>
    <item>
      <title>Using SASAUTOS in SAS studio</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Using-SASAUTOS-in-SAS-studio/m-p/682618#M206630</link>
      <description>&lt;P&gt;HI&lt;/P&gt;&lt;P&gt;Hope you are very well&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have historically always used SAS windows PC to run SAS and added a SASAUTOS option in the autoexcec to set the autocall macros when SAS starts up&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However moving to SAS studio I am trying to use a similar options i.e.&lt;/P&gt;&lt;P&gt;options mautosource sasautos='mydir/test';&lt;/P&gt;&lt;P&gt;However when calling the macro contained in the folder e.g.&lt;/P&gt;&lt;P&gt;%starting;&lt;/P&gt;&lt;P&gt;I get&amp;nbsp; :&amp;nbsp;&lt;SPAN&gt;WARNING: Apparent invocation of macro STARTING not resolved &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;So it does not appear the macro has been compiled. I've double checked file path and macro itself and can't find an issue at all&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I don't have access to the config files etc so was hoping&amp;nbsp;the SASAUTOS option would work for me&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Many thanks&amp;nbsp;in advance&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Ben&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 09 Sep 2020 12:52:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Using-SASAUTOS-in-SAS-studio/m-p/682618#M206630</guid>
      <dc:creator>bkmant</dc:creator>
      <dc:date>2020-09-09T12:52:10Z</dc:date>
    </item>
    <item>
      <title>Re: Using SASAUTOS in SAS studio</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Using-SASAUTOS-in-SAS-studio/m-p/682630#M206632</link>
      <description>&lt;P&gt;Did you copy your .sas files to the server, into the path you specified?&lt;/P&gt;
&lt;P&gt;If you are using University Edition, you must put your files into the shared folder, and set a path of /folders/myfolders/... in the option.&lt;/P&gt;</description>
      <pubDate>Wed, 09 Sep 2020 13:29:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Using-SASAUTOS-in-SAS-studio/m-p/682630#M206632</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2020-09-09T13:29:48Z</dc:date>
    </item>
    <item>
      <title>Re: Using SASAUTOS in SAS studio</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Using-SASAUTOS-in-SAS-studio/m-p/682645#M206640</link>
      <description>Many thanks for getting back. I confirm the program has been saved into the folder present on the server. The program i.e. starting.sas contains the macro starting. I can open and run the starting program to compile the macro but really want to have some way to call macros so I don';t have to embed them within my programs. I am using basic version of studio 3.6: SAS platform: Linux LIN X64 2.6.32-754.28.1.el6.x86_64 Thanks again for your help.</description>
      <pubDate>Wed, 09 Sep 2020 14:11:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Using-SASAUTOS-in-SAS-studio/m-p/682645#M206640</guid>
      <dc:creator>bkmant</dc:creator>
      <dc:date>2020-09-09T14:11:25Z</dc:date>
    </item>
    <item>
      <title>Re: Using SASAUTOS in SAS studio</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Using-SASAUTOS-in-SAS-studio/m-p/682657#M206644</link>
      <description>Hi: But are you using SAS Studio on your own company or school network or are you using SAS Studio via SAS University Edition in a Virtual Machine or SAS OnDemand for Academics? &lt;BR /&gt;&lt;BR /&gt;  My understanding of SASAUTOS is that it is expecting a LIBRARY name, NOT a folder path. In your example, it looks like you have a folder path. If you have multiple libraries, you separate them with a comma. So I suspect that you are pointing to the wrong location in the option. Here's the doc site: &lt;A href="https://go.documentation.sas.com/?docsetId=mcrolref&amp;amp;docsetTarget=p12b2qq72dkxpsn1e19y57emerr6.htm&amp;amp;docsetVersion=9.4&amp;amp;locale=en" target="_blank"&gt;https://go.documentation.sas.com/?docsetId=mcrolref&amp;amp;docsetTarget=p12b2qq72dkxpsn1e19y57emerr6.htm&amp;amp;docsetVersion=9.4&amp;amp;locale=en&lt;/A&gt; &lt;BR /&gt;&lt;BR /&gt;Hope this helps,&lt;BR /&gt;Cynthia</description>
      <pubDate>Wed, 09 Sep 2020 14:41:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Using-SASAUTOS-in-SAS-studio/m-p/682657#M206644</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2020-09-09T14:41:04Z</dc:date>
    </item>
    <item>
      <title>Re: Using SASAUTOS in SAS studio</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Using-SASAUTOS-in-SAS-studio/m-p/682660#M206645</link>
      <description>&lt;P&gt;What version of SAS are you using with your SAS/Studio session?&amp;nbsp; Where is it running.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Note that if you have autocall macros stored as files on your PC that you were using with SAS running on your PC and you are now trying to use them on some other machine then the directory needs to accessible from that machine.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Plus if the new machine is using Unix then names of the files must be in all lowercase.&amp;nbsp; So if you are trying to find a macro named&amp;nbsp;&lt;SPAN&gt;STARTING then it is looking for a file name starting.sas.&amp;nbsp; It will not see the file if it is named using any uppercase letters.&amp;nbsp; So names like STARTING.sas or Starting.sas or starting.SAS that work fine on Windows will be "invisible" when running on Unix.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 09 Sep 2020 14:48:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Using-SASAUTOS-in-SAS-studio/m-p/682660#M206645</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2020-09-09T14:48:35Z</dc:date>
    </item>
    <item>
      <title>Re: Using SASAUTOS in SAS studio</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Using-SASAUTOS-in-SAS-studio/m-p/682661#M206646</link>
      <description>Thanks for looking not my query Cynthia. I confirm I am using studio via my company. My understanding is sasautos can use file references enclosed in quotes. I've also checked the nomencalture of the file path as it's running on a unix platform and can't see a problem there.</description>
      <pubDate>Wed, 09 Sep 2020 14:48:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Using-SASAUTOS-in-SAS-studio/m-p/682661#M206646</guid>
      <dc:creator>bkmant</dc:creator>
      <dc:date>2020-09-09T14:48:21Z</dc:date>
    </item>
    <item>
      <title>Re: Using SASAUTOS in SAS studio</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Using-SASAUTOS-in-SAS-studio/m-p/682662#M206647</link>
      <description>Many thanks Tom for looking into this. I just checked SAS version which is: SAS 9.04.01M3P062415 for Linux. Sas studio is running on a unix server which I have access to. I confirm the program and macro call are all in lower case i.e. starting.sas as well as the file path. I have successfully set a libname to the filepath used on sasauto option so not sure why it's not being compiled</description>
      <pubDate>Wed, 09 Sep 2020 14:59:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Using-SASAUTOS-in-SAS-studio/m-p/682662#M206647</guid>
      <dc:creator>bkmant</dc:creator>
      <dc:date>2020-09-09T14:59:11Z</dc:date>
    </item>
    <item>
      <title>Re: Using SASAUTOS in SAS studio</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Using-SASAUTOS-in-SAS-studio/m-p/682666#M206651</link>
      <description>&lt;P&gt;I don't think creating a LIBNAME will do any good.&amp;nbsp; Unless you are trying to use complied macro objects stored in a SAS catalog, which I would not recommend as it just adds a lot of complexity for little added value.&amp;nbsp; You can use either a quoted physical name or a fileref in the SASAUTOS option.&amp;nbsp; I recommend using the actual path because if you use a fileref the the fileref is now in use and you cannot clear or redefine the fileref.&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here is an example that uses both:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;filename sysmac '/everyone/macros';
options sasautos=('/myproject/macros' SYSMAC SASAUTOS);&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;You can check the SASAUTOS setting using PROC OPTIONS or the GETOPTION() function.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%put %sysfunc(getoption(sasautos));&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;You might also want to check the MRECALL option.&amp;nbsp; If it previously failed to find %STARTING and you have NOMRECALL it will not go check for it again.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can try compiling the macro explicitly. Perhaps there is problem in the code? (I doubt it since you would see an error in that case.)&amp;nbsp; So using your example (and correcting for the missing root node in your example path) you might try this program:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%include '/mydir/test/starting.sas';
%starting;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 09 Sep 2020 15:14:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Using-SASAUTOS-in-SAS-studio/m-p/682666#M206651</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2020-09-09T15:14:19Z</dc:date>
    </item>
    <item>
      <title>Re: Using SASAUTOS in SAS studio</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Using-SASAUTOS-in-SAS-studio/m-p/682667#M206652</link>
      <description>&lt;P&gt;Brute force attack: run&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%include "/mypath/starting.sas";&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;and see if it works.&lt;/P&gt;</description>
      <pubDate>Wed, 09 Sep 2020 15:17:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Using-SASAUTOS-in-SAS-studio/m-p/682667#M206652</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2020-09-09T15:17:52Z</dc:date>
    </item>
    <item>
      <title>Re: Using SASAUTOS in SAS studio</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Using-SASAUTOS-in-SAS-studio/m-p/682672#M206656</link>
      <description>&lt;P&gt;Many thanks Tom&lt;/P&gt;&lt;P&gt;It appears the options mrecall needed to be set in the studio environment to get the code working&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Have a great rest of the week and thanks again&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Ben&lt;/P&gt;</description>
      <pubDate>Wed, 09 Sep 2020 15:36:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Using-SASAUTOS-in-SAS-studio/m-p/682672#M206656</guid>
      <dc:creator>bkmant</dc:creator>
      <dc:date>2020-09-09T15:36:42Z</dc:date>
    </item>
    <item>
      <title>Re: Using SASAUTOS in SAS studio</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Using-SASAUTOS-in-SAS-studio/m-p/682673#M206657</link>
      <description>Many thanks I confirm the include option also works for me to run the program so I don't have to embed it in my new program. Thanks for your help and have a great rest of the week</description>
      <pubDate>Wed, 09 Sep 2020 15:38:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Using-SASAUTOS-in-SAS-studio/m-p/682673#M206657</guid>
      <dc:creator>bkmant</dc:creator>
      <dc:date>2020-09-09T15:38:06Z</dc:date>
    </item>
  </channel>
</rss>

