<?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: Autocall - Examples How-To Basic Steps? in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Autocall-Examples-How-To-Basic-Steps/m-p/539504#M148666</link>
    <description>&lt;P&gt;Can anyone explain any advantages to using the "catalog" approach?&lt;/P&gt;</description>
    <pubDate>Thu, 28 Feb 2019 21:58:07 GMT</pubDate>
    <dc:creator>shl007</dc:creator>
    <dc:date>2019-02-28T21:58:07Z</dc:date>
    <item>
      <title>Autocall - Examples How-To Basic Steps?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Autocall-Examples-How-To-Basic-Steps/m-p/539150#M148495</link>
      <description>&lt;P&gt;Hello - I've googled around and have seen bits and pieces of how to set up a macro autocall. Is there a tech paper that walks through an example step-by-step? I took the Macro Essentials SAS class, and autocalls were not covered there.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Wed, 27 Feb 2019 21:54:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Autocall-Examples-How-To-Basic-Steps/m-p/539150#M148495</guid>
      <dc:creator>shl007</dc:creator>
      <dc:date>2019-02-27T21:54:37Z</dc:date>
    </item>
    <item>
      <title>Re: Autocall - Examples How-To Basic Steps?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Autocall-Examples-How-To-Basic-Steps/m-p/539187#M148514</link>
      <description>&lt;P&gt;There's plenty of information out there.&amp;nbsp; Did you try googling "autocall"?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Basics:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="http://support.sas.com/documentation/cdl/en/mcrolref/62978/HTML/default/viewer.htm#n1o5fkxq0gqdpcn1xs3ksdks69tf.htm" target="_blank" rel="noopener"&gt;http://support.sas.com/documentation/cdl/en/mcrolref/62978/HTML/default/viewer.htm#n1o5fkxq0gqdpcn1xs3ksdks69tf.htm&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;A more detailed paper:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://support.sas.com/resources/papers/proceedings/proceedings/sugi27/p017-27.pdf" target="_blank" rel="noopener"&gt;https://support.sas.com/resources/papers/proceedings/proceedings/sugi27/p017-27.pdf&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The basics of setting this up are simple.&amp;nbsp; Select a folder to hold your macro definitions.&amp;nbsp; Then for each macro, store it as a separate file within the folder.&amp;nbsp; If you're creating a macro called %report_me save the macro definition as report_me.sas within the folder.&lt;/P&gt;</description>
      <pubDate>Wed, 27 Feb 2019 23:32:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Autocall-Examples-How-To-Basic-Steps/m-p/539187#M148514</guid>
      <dc:creator>Astounding</dc:creator>
      <dc:date>2019-02-27T23:32:44Z</dc:date>
    </item>
    <item>
      <title>Re: Autocall - Examples How-To Basic Steps?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Autocall-Examples-How-To-Basic-Steps/m-p/539194#M148515</link>
      <description>&lt;P&gt;And adding to what&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/4954"&gt;@Astounding&lt;/a&gt;&amp;nbsp;wrote:&lt;/P&gt;
&lt;P&gt;The .sas file must have the same name than the name of the macro defined in the .sas file. If the OS is UNIX/Linux then the name of the .sas file must all be lowercase (the name of the macro in the code can still be mixed case).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You then just need to store this .sas file in a folder for which a path is defined in system option SASAUTOS - or you can add the path to SASAUTOS. SASAUTOS holds the names of all the paths (and libraries) under which SAS will be looking for the macro when you call it.&lt;/P&gt;
&lt;P&gt;&lt;A href="https://go.documentation.sas.com/?docsetId=mcrolref&amp;amp;docsetTarget=p12b2qq72dkxpsn1e19y57emerr6.htm&amp;amp;docsetVersion=9.4&amp;amp;locale=en&amp;nbsp;" target="_blank"&gt;https://go.documentation.sas.com/?docsetId=mcrolref&amp;amp;docsetTarget=p12b2qq72dkxpsn1e19y57emerr6.htm&amp;amp;docsetVersion=9.4&amp;amp;locale=en&amp;nbsp;&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 28 Feb 2019 00:12:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Autocall-Examples-How-To-Basic-Steps/m-p/539194#M148515</guid>
      <dc:creator>Patrick</dc:creator>
      <dc:date>2019-02-28T00:12:59Z</dc:date>
    </item>
    <item>
      <title>Re: Autocall - Examples How-To Basic Steps?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Autocall-Examples-How-To-Basic-Steps/m-p/539473#M148644</link>
      <description>&lt;P&gt;Yes, I had searched that and had seen those links. What I wasn't sure about was this step - how does one save in a SAS catalog? I've never worked with catalogs before and am unsure of the advantages of doing so. Sorry if this is a dumb question!!!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Store the source code for each macro in a SOURCE entry in a SAS catalog. (SOURCE is the entry type.) The name of the SOURCE entry must be the same as the macro name.&lt;/P&gt;</description>
      <pubDate>Thu, 28 Feb 2019 20:20:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Autocall-Examples-How-To-Basic-Steps/m-p/539473#M148644</guid>
      <dc:creator>shl007</dc:creator>
      <dc:date>2019-02-28T20:20:59Z</dc:date>
    </item>
    <item>
      <title>Re: Autocall - Examples How-To Basic Steps?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Autocall-Examples-How-To-Basic-Steps/m-p/539486#M148653</link>
      <description>&lt;P&gt;That's making it sound harder than it really is.&amp;nbsp; Store the macros as text.&amp;nbsp; So within report_me.sas you would expect to see:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;%macro report_me (parameters)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;........ definition of the macro ........&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;%mend report_me;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It's just a text file.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You may have been reading something about precompiled macros.&amp;nbsp; That's a different topic.&lt;/P&gt;</description>
      <pubDate>Thu, 28 Feb 2019 21:03:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Autocall-Examples-How-To-Basic-Steps/m-p/539486#M148653</guid>
      <dc:creator>Astounding</dc:creator>
      <dc:date>2019-02-28T21:03:45Z</dc:date>
    </item>
    <item>
      <title>Re: Autocall - Examples How-To Basic Steps?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Autocall-Examples-How-To-Basic-Steps/m-p/539490#M148655</link>
      <description>&lt;P&gt;I read it from here (step 3 below), which seems to be talking about something slightly different than a fileref. I'll just store in a fileref and forget about using a CATALOG argument, though it would have been interesting to try the latter.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://v8doc.sas.com/sashtml/macro/z1328769.htm" target="_blank" rel="noopener"&gt;https://v8doc.sas.com/sashtml/macro/z1328769.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;TABLE cellspacing="0" cellpadding="0"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;STRONG&gt;&lt;FONT size="5"&gt;Using SAS Catalogs as Autocall Libraries&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;In Release 6.11 or later, you can use the CATALOG access method to store autocall macros as SOURCE entries in SAS catalogs. To create an autocall library using a SAS catalog, follow these steps:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Use a LIBNAME statement to assign a libref to the SAS library.&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;Use a FILENAME statement with the CATALOG argument to assign a fileref to the catalog that contains the autocall macros. For example, the following code creates a fileref, MYMACROS, that points to a catalog named MYMACS.MYAUTOS:&lt;PRE&gt;libname mymacs '&lt;STRONG&gt;SAS-data-library&lt;/STRONG&gt;';
filename mymacros catalog 'mymacs.myautos';&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;Store the source code for each macro in a SOURCE entry in a SAS catalog. (SOURCE is the entry type.) The name of the SOURCE entry must be the same as the macro name.&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;Set the SASAUTOS system option to specify the fileref as an autocall library. For more information, see SASAUTOS in Chapter 13.&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 28 Feb 2019 21:09:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Autocall-Examples-How-To-Basic-Steps/m-p/539490#M148655</guid>
      <dc:creator>shl007</dc:creator>
      <dc:date>2019-02-28T21:09:52Z</dc:date>
    </item>
    <item>
      <title>Re: Autocall - Examples How-To Basic Steps?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Autocall-Examples-How-To-Basic-Steps/m-p/539492#M148657</link>
      <description>&lt;P&gt;Yes, for most programmers, that is overkill.&amp;nbsp; Here's the simpler way (tailored for PCs):&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="http://support.sas.com/kb/24/451.html" target="_blank"&gt;http://support.sas.com/kb/24/451.html&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 28 Feb 2019 21:17:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Autocall-Examples-How-To-Basic-Steps/m-p/539492#M148657</guid>
      <dc:creator>Astounding</dc:creator>
      <dc:date>2019-02-28T21:17:25Z</dc:date>
    </item>
    <item>
      <title>Re: Autocall - Examples How-To Basic Steps?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Autocall-Examples-How-To-Basic-Steps/m-p/539504#M148666</link>
      <description>&lt;P&gt;Can anyone explain any advantages to using the "catalog" approach?&lt;/P&gt;</description>
      <pubDate>Thu, 28 Feb 2019 21:58:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Autocall-Examples-How-To-Basic-Steps/m-p/539504#M148666</guid>
      <dc:creator>shl007</dc:creator>
      <dc:date>2019-02-28T21:58:07Z</dc:date>
    </item>
  </channel>
</rss>

