<?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: Help in allocating a macro library. in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Help-in-allocating-a-macro-library/m-p/194744#M36612</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Nice you did found the File catalog access method. What that does is allowing SAS catalog members to be treated as being the same like text-files of the OS.&amp;nbsp;&amp;nbsp; &lt;BR /&gt;when you do that it should be like:&amp;nbsp; (&lt;A href="http://support.sas.com/documentation/cdl/en/lesysoptsref/64892/HTML/default/viewer.htm#p1q9ay0ai0h2ein1n68qxomnm3q7.htm" title="http://support.sas.com/documentation/cdl/en/lesysoptsref/64892/HTML/default/viewer.htm#p1q9ay0ai0h2ein1n68qxomnm3q7.htm"&gt;SAS(R) 9.3 System Options: Reference, Second Edition&lt;/A&gt;) and &lt;A href="http://support.sas.com/documentation/cdl/en/mcrolref/62978/HTML/default/viewer.htm#n1o5fkxq0gqdpcn1xs3ksdks69tf.htm" title="http://support.sas.com/documentation/cdl/en/mcrolref/62978/HTML/default/viewer.htm#n1o5fkxq0gqdpcn1xs3ksdks69tf.htm"&gt;SAS(R) 9.3 Macro Language: Reference&lt;/A&gt; (catalog usage)&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: Courier New; font-size: 10pt;"&gt; Libname CAPMACS 'M:ACXCAP\SAS Macros';&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: Courier New; font-size: 10pt;"&gt; Filename Capmacro catalog 'CAPMACS.autos';&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: Courier New; font-size: 10pt;"&gt; options&amp;nbsp; append = ( sasautos = Capmacro &lt;/SPAN&gt;&lt;SPAN style="font-family: Courier New; font-size: 10pt;"&gt;) ;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;The requirement will be that you store you macro in the mentioned catalog as source type. There are some options to get data into a catalog, it can&amp;nbsp; be directly accessed using the DMS&amp;nbsp; interface. It looks complicated and it is. The advantages are:&lt;/P&gt;&lt;P&gt;- You can copy catalogs cross-platform without coming into naming problems (eg lowercase Unix)&lt;/P&gt;&lt;P&gt;- You can keep the sources within the structure of the data as catalog-type along the SAS datasets.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;More relaxed easy the OS text code approach;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: Courier New; font-size: 10pt;"&gt; Filename Capmacro 'M:ACXCAP\SAS Macros';&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: Courier New; font-size: 10pt;"&gt; options&amp;nbsp; append = ( sasautos = Capmacro &lt;/SPAN&gt;&lt;SPAN style="font-family: Courier New; font-size: 10pt;"&gt;) ;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: Courier New; font-size: 10pt;"&gt;The filename I have left there you can use to copy to code/macro there using a datastep or whatever&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 13 Apr 2015 17:58:43 GMT</pubDate>
    <dc:creator>jakarman</dc:creator>
    <dc:date>2015-04-13T17:58:43Z</dc:date>
    <item>
      <title>Help in allocating a macro library.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Help-in-allocating-a-macro-library/m-p/194742#M36610</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I created a macro, %READIN, that I use for listing a windows directory and calling in the files for input to a SAS program.&amp;nbsp; The macro works, but when I put it into its own folder and then try to use the SASAUTOS command to bring it in, it cannot find the macro.&amp;nbsp;&amp;nbsp; Here is the code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: Courier New;"&gt;Libname CAPMACS 'M:ACXCAP\SAS Macros';&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: Courier New;"&gt;Filename Capmacro catalog 'CAPMACS.autos';&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: Courier New;"&gt;options mautosource mpring symbolgen sasautos;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: Courier New;"&gt; append =&amp;nbsp; sasautos (&lt;/SPAN&gt;&lt;SPAN style="color: #800080; font-size: 10pt; font-family: Courier New;"&gt;'M:\ACXCAP\SAS Macros'&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; font-family: Courier New;"&gt;) ;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: Courier New;"&gt;%readin;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: Courier New;"&gt;I get this error;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;132&amp;nbsp; %readin&amp;nbsp;&amp;nbsp; -&amp;nbsp; 180&lt;/P&gt;&lt;P&gt;WARNING: Apparent invocation of macro READIN not resolved.&lt;/P&gt;&lt;P&gt;ERROR 180-322: Statement is not valid or it is used out of proper order.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can someone help?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Apr 2015 16:52:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Help-in-allocating-a-macro-library/m-p/194742#M36610</guid>
      <dc:creator>LMendoza</dc:creator>
      <dc:date>2015-04-13T16:52:50Z</dc:date>
    </item>
    <item>
      <title>Re: Help in allocating a macro library.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Help-in-allocating-a-macro-library/m-p/194743#M36611</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I would try:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;DIV style="font-family: Consolas; font-size: 11pt;"&gt; &lt;/DIV&gt;&lt;DIV style="font-family: Consolas; font-size: 11pt;"&gt; &lt;/DIV&gt;&lt;DIV style="font-family: Consolas; font-size: 11pt;"&gt;&lt;SPAN style="color: #0000ff; background-color: #ffffff;"&gt;options&lt;/SPAN&gt; &lt;SPAN style="color: #0000ff; background-color: #ffffff;"&gt;append&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;=(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; background-color: #ffffff;"&gt;sasautos&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #800080; background-color: #ffffff;"&gt;"M:\ACXCAP\SAS Macros"&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;);&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #008000; background-color: #ffffff;"&gt;*Take a look at sasautos;&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; background-color: #ffffff;"&gt;%put&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt; %getoption(sasautos);&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV style="font-family: Consolas; font-size: 11pt;"&gt; &lt;/DIV&gt;&lt;DIV style="font-family: Consolas; font-size: 11pt;"&gt; &lt;/DIV&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would also try setting options MRECALL&amp;nbsp; while you are debugging this.&amp;nbsp; It tells SAS to look for an autocall macro definition every time you invoke a macro.&amp;nbsp; Without this option, SAS will only look once for each macro.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Assume you are running on Windows.&amp;nbsp; One gotcha on *nix is that the file name of the file holding the macro definition must be lower case.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HTH,&lt;/P&gt;&lt;P&gt;-Q.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Apr 2015 17:31:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Help-in-allocating-a-macro-library/m-p/194743#M36611</guid>
      <dc:creator>Quentin</dc:creator>
      <dc:date>2015-04-13T17:31:31Z</dc:date>
    </item>
    <item>
      <title>Re: Help in allocating a macro library.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Help-in-allocating-a-macro-library/m-p/194744#M36612</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Nice you did found the File catalog access method. What that does is allowing SAS catalog members to be treated as being the same like text-files of the OS.&amp;nbsp;&amp;nbsp; &lt;BR /&gt;when you do that it should be like:&amp;nbsp; (&lt;A href="http://support.sas.com/documentation/cdl/en/lesysoptsref/64892/HTML/default/viewer.htm#p1q9ay0ai0h2ein1n68qxomnm3q7.htm" title="http://support.sas.com/documentation/cdl/en/lesysoptsref/64892/HTML/default/viewer.htm#p1q9ay0ai0h2ein1n68qxomnm3q7.htm"&gt;SAS(R) 9.3 System Options: Reference, Second Edition&lt;/A&gt;) and &lt;A href="http://support.sas.com/documentation/cdl/en/mcrolref/62978/HTML/default/viewer.htm#n1o5fkxq0gqdpcn1xs3ksdks69tf.htm" title="http://support.sas.com/documentation/cdl/en/mcrolref/62978/HTML/default/viewer.htm#n1o5fkxq0gqdpcn1xs3ksdks69tf.htm"&gt;SAS(R) 9.3 Macro Language: Reference&lt;/A&gt; (catalog usage)&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: Courier New; font-size: 10pt;"&gt; Libname CAPMACS 'M:ACXCAP\SAS Macros';&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: Courier New; font-size: 10pt;"&gt; Filename Capmacro catalog 'CAPMACS.autos';&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: Courier New; font-size: 10pt;"&gt; options&amp;nbsp; append = ( sasautos = Capmacro &lt;/SPAN&gt;&lt;SPAN style="font-family: Courier New; font-size: 10pt;"&gt;) ;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;The requirement will be that you store you macro in the mentioned catalog as source type. There are some options to get data into a catalog, it can&amp;nbsp; be directly accessed using the DMS&amp;nbsp; interface. It looks complicated and it is. The advantages are:&lt;/P&gt;&lt;P&gt;- You can copy catalogs cross-platform without coming into naming problems (eg lowercase Unix)&lt;/P&gt;&lt;P&gt;- You can keep the sources within the structure of the data as catalog-type along the SAS datasets.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;More relaxed easy the OS text code approach;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: Courier New; font-size: 10pt;"&gt; Filename Capmacro 'M:ACXCAP\SAS Macros';&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: Courier New; font-size: 10pt;"&gt; options&amp;nbsp; append = ( sasautos = Capmacro &lt;/SPAN&gt;&lt;SPAN style="font-family: Courier New; font-size: 10pt;"&gt;) ;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: Courier New; font-size: 10pt;"&gt;The filename I have left there you can use to copy to code/macro there using a datastep or whatever&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Apr 2015 17:58:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Help-in-allocating-a-macro-library/m-p/194744#M36612</guid>
      <dc:creator>jakarman</dc:creator>
      <dc:date>2015-04-13T17:58:43Z</dc:date>
    </item>
    <item>
      <title>Re: Help in allocating a macro library.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Help-in-allocating-a-macro-library/m-p/194745#M36613</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You mean this ?&lt;/P&gt;&lt;P&gt;%put %sysfunc(getoption(sasautos));&lt;/P&gt;&lt;P&gt;%put %sysfunc(pathname(sasautos));&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Apr 2015 14:02:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Help-in-allocating-a-macro-library/m-p/194745#M36613</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2015-04-14T14:02:56Z</dc:date>
    </item>
    <item>
      <title>Re: Help in allocating a macro library.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Help-in-allocating-a-macro-library/m-p/194746#M36614</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes &lt;A __default_attr="645292" __jive_macro_name="user" class="jive_macro jive_macro_user" data-objecttype="3" href="https://communities.sas.com/"&gt;&lt;/A&gt;, I meant %sysfunc(getoption(sasautos)).&amp;nbsp;&amp;nbsp; Thanks for the correction.&amp;nbsp; I have an autocall macro %getoption() which does something similar, and forgot it was something I wrote. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Apr 2015 14:19:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Help-in-allocating-a-macro-library/m-p/194746#M36614</guid>
      <dc:creator>Quentin</dc:creator>
      <dc:date>2015-04-14T14:19:34Z</dc:date>
    </item>
    <item>
      <title>Re: Help in allocating a macro library.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Help-in-allocating-a-macro-library/m-p/194747#M36615</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you to everyone that responded.&amp;nbsp; I was able to get the macros to work and the Macro library allocated.&amp;nbsp; Thanks for the assistance. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Apr 2015 15:11:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Help-in-allocating-a-macro-library/m-p/194747#M36615</guid>
      <dc:creator>LMendoza</dc:creator>
      <dc:date>2015-04-14T15:11:59Z</dc:date>
    </item>
  </channel>
</rss>

