<?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 macros - Parameter descriptions, Compiling without executing in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Autocall-macros-Parameter-descriptions-Compiling-without/m-p/96784#M20418</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Agree with ballardw, it is about configuring Eguide. Would be an option to redirect this discussion in the Eguide discussions.&lt;BR /&gt;ChrisH is following that one.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 13 Aug 2013 06:31:48 GMT</pubDate>
    <dc:creator>jakarman</dc:creator>
    <dc:date>2013-08-13T06:31:48Z</dc:date>
    <item>
      <title>Autocall macros - Parameter descriptions, Compiling without executing</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Autocall-macros-Parameter-descriptions-Compiling-without/m-p/96779#M20413</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am interested in showing the inline descriptions for parameters used by my autocall macros. (i.e. To add a description for PARAM_NAME, add an inline comment after the parameter). I understand these descriptions aren't shown unless the macro has been compiled. Is there a way to compile all or some autocall macros stored as .sas files in an autocall folder without executing them or feeding them any parameter values?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example:&lt;/P&gt;&lt;P&gt;autocallmacro.sas&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;%macro autocallmacro(parameter /*First parameter*/);&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;%mend;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SASEG:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; %autocallmacro(&lt;/P&gt;&lt;TABLE border="1" class="jiveBorder" height="84" jive-data-cell="{&amp;quot;color&amp;quot;:&amp;quot;#575757&amp;quot;,&amp;quot;textAlign&amp;quot;:&amp;quot;left&amp;quot;,&amp;quot;padding&amp;quot;:&amp;quot;2&amp;quot;,&amp;quot;backgroundColor&amp;quot;:&amp;quot;transparent&amp;quot;,&amp;quot;fontFamily&amp;quot;:&amp;quot;Arial&amp;quot;}" jive-data-header="{&amp;quot;color&amp;quot;:&amp;quot;#FFFFFF&amp;quot;,&amp;quot;backgroundColor&amp;quot;:&amp;quot;#6690BC&amp;quot;,&amp;quot;textAlign&amp;quot;:&amp;quot;center&amp;quot;,&amp;quot;padding&amp;quot;:&amp;quot;2&amp;quot;}" style="width: 170px; height: 79px; border: #000000 1px solid;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD style="text-align: left; background-color: #ffff99; font-family: Arial; color: #575757; vertical-align: auto; padding: 2px;"&gt;&lt;P&gt;Autocall macro(&lt;STRONG&gt;Name&lt;/STRONG&gt;)&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Name:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;First Name &lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;I'm using the following code to:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;/*Enable the autocall library:*/&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; options mautosource mrecall sasautos = ("C:\AutocallLibrary\" sasautos);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;/*List all macros currently defined in work.sasmacr:*/&lt;/P&gt;&lt;P style="padding-left: 60px;"&gt;proc catalog catalog = work.sasmacr;&lt;/P&gt;&lt;P style="padding-left: 60px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; contents out = work.list;&lt;/P&gt;&lt;P style="padding-left: 60px;"&gt;quit;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;/*Clear out all macros currently defined in the work.sasmacr (Note: Used for developing/debugging autocall macros):*/&lt;/P&gt;&lt;P style="padding-left: 60px;"&gt;proc catalog catolog = work.sasmcr et=macro kill force;&lt;/P&gt;&lt;P style="padding-left: 60px;"&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any thoughts?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your help in advance!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Aug 2013 14:12:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Autocall-macros-Parameter-descriptions-Compiling-without/m-p/96779#M20413</guid>
      <dc:creator>Brian</dc:creator>
      <dc:date>2013-08-01T14:12:27Z</dc:date>
    </item>
    <item>
      <title>Re: Autocall macros - Parameter descriptions, Compiling without executing</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Autocall-macros-Parameter-descriptions-Compiling-without/m-p/96780#M20414</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The %include statment will submit any SAS code referenced. If the file only contains a macro definition such as those in in autocall libraries then they would compile but not execute.&lt;/P&gt;&lt;P&gt;Assign a filename with wildcard to the loction of the macros:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;filename test "C:\path\*.sas";&lt;/P&gt;&lt;P&gt;%include test;&lt;/P&gt;&lt;P&gt;for windows as an example. NOTE: ALL sas programs in the location will be executed so you want to segregate the macros or have a standard naming convention like Mac_*.SAS would find.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Aug 2013 15:15:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Autocall-macros-Parameter-descriptions-Compiling-without/m-p/96780#M20414</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2013-08-01T15:15:51Z</dc:date>
    </item>
    <item>
      <title>Re: Autocall macros - Parameter descriptions, Compiling without executing</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Autocall-macros-Parameter-descriptions-Compiling-without/m-p/96781#M20415</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for your reply! The %include helps re-compile all of the macros in the autocall library as you stated. Any thoughts on the inline comments? %include isn't pulling inline comments for the macro parameters.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Aug 2013 20:46:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Autocall-macros-Parameter-descriptions-Compiling-without/m-p/96781#M20415</guid>
      <dc:creator>Brian</dc:creator>
      <dc:date>2013-08-12T20:46:37Z</dc:date>
    </item>
    <item>
      <title>Re: Autocall macros - Parameter descriptions, Compiling without executing</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Autocall-macros-Parameter-descriptions-Compiling-without/m-p/96782#M20416</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;From your first post it looks like you may be doing something with Enterprise Guide. I don't use that and so can't help with that part.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Aug 2013 21:32:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Autocall-macros-Parameter-descriptions-Compiling-without/m-p/96782#M20416</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2013-08-12T21:32:17Z</dc:date>
    </item>
    <item>
      <title>Re: Autocall macros - Parameter descriptions, Compiling without executing</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Autocall-macros-Parameter-descriptions-Compiling-without/m-p/96783#M20417</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I suspect that EG is using the %COPY statement to pull the source of the macro to enable the display of inline descriptors.&lt;/P&gt;&lt;P&gt;To store the macro source code so that it is available for %copy command to pull the source you need to do at least.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1) Set the MSTORED option&lt;/P&gt;&lt;P&gt;2) Set the SASMSTORE option to the library were you want them stored.&lt;/P&gt;&lt;P&gt;3) Add the /store source to the end of all of your %macro statements.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am not sure how this mode of storing compiled macros into catalogs conflicts with the traditional autocall process you have been using.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Aug 2013 22:45:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Autocall-macros-Parameter-descriptions-Compiling-without/m-p/96783#M20417</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2013-08-12T22:45:01Z</dc:date>
    </item>
    <item>
      <title>Re: Autocall macros - Parameter descriptions, Compiling without executing</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Autocall-macros-Parameter-descriptions-Compiling-without/m-p/96784#M20418</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Agree with ballardw, it is about configuring Eguide. Would be an option to redirect this discussion in the Eguide discussions.&lt;BR /&gt;ChrisH is following that one.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Aug 2013 06:31:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Autocall-macros-Parameter-descriptions-Compiling-without/m-p/96784#M20418</guid>
      <dc:creator>jakarman</dc:creator>
      <dc:date>2013-08-13T06:31:48Z</dc:date>
    </item>
    <item>
      <title>Re: Autocall macros - Parameter descriptions, Compiling without executing</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Autocall-macros-Parameter-descriptions-Compiling-without/m-p/96785#M20419</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi folks -- this thread was just brought to my attention.&amp;nbsp; Actually the answer is more straightforward (and unfortunately more limited) than what has been discussed so far.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The parameter descriptions are parsed out of the macro declaration (the %macro statement), so unless the %macro is defined &lt;STRONG&gt;in the same program&lt;/STRONG&gt; where you are using the macro, you won't see the help displayed in the SAS Enterprise Guide editor.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You might be able to "trick" the program editor into displaying the help by including a dummy declaration of the macro at the top, and then somehow %include or otherwise redirect SAS to find the actual macro somewhere else during runtime.&amp;nbsp; But I'm not sure that this helps your scenario.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Another technique that might prove more useful is to&lt;A href="http://blogs.sas.com/content/sasdummy/2011/11/17/sas-program-editor-abbrevs/"&gt; define editor abbreviations for commonly used code segments&lt;/A&gt; (such as macro calls) that also contain placeholders for the information you need to fill in.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Chris&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Sep 2013 17:34:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Autocall-macros-Parameter-descriptions-Compiling-without/m-p/96785#M20419</guid>
      <dc:creator>ChrisHemedinger</dc:creator>
      <dc:date>2013-09-05T17:34:10Z</dc:date>
    </item>
    <item>
      <title>Re: Autocall macros - Parameter descriptions, Compiling without executing</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Autocall-macros-Parameter-descriptions-Compiling-without/m-p/96786#M20420</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Brian&lt;/P&gt;&lt;P&gt;The last technique that Chris suggests&lt;/P&gt;&lt;PRE __jive_macro_name="quote" class="jive_text_macro jive_macro_quote"&gt;
&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;to&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://blogs.sas.com/content/sasdummy/2011/11/17/sas-program-editor-abbrevs/" style="font-size: 10pt; line-height: 1.5em;"&gt; define editor abbreviations for commonly used code segments&lt;/A&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt; (such as macro calls) ... contain placeholders &lt;/SPAN&gt;&lt;/P&gt;

&lt;/PRE&gt;&lt;P&gt;points to a solution in line with your image in the original posting.&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; %autocallmacro(&lt;/P&gt;&lt;TABLE border="1" class="jiveBorder" height="84" jive-data-cell="{&amp;quot;color&amp;quot;:&amp;quot;#575757&amp;quot;,&amp;quot;textAlign&amp;quot;:&amp;quot;left&amp;quot;,&amp;quot;padding&amp;quot;:&amp;quot;2&amp;quot;,&amp;quot;backgroundColor&amp;quot;:&amp;quot;transparent&amp;quot;,&amp;quot;fontFamily&amp;quot;:&amp;quot;Arial&amp;quot;}" jive-data-header="{&amp;quot;color&amp;quot;:&amp;quot;#FFFFFF&amp;quot;,&amp;quot;backgroundColor&amp;quot;:&amp;quot;#6690BC&amp;quot;,&amp;quot;textAlign&amp;quot;:&amp;quot;center&amp;quot;,&amp;quot;padding&amp;quot;:&amp;quot;2&amp;quot;}" style="border: 1px solid #000000; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;TBODY style="font-style: inherit; font-family: inherit;"&gt;&lt;TR style="border: 0px; font-style: inherit; font-family: inherit;"&gt;&lt;TD style="border: 1px solid #000000; font-style: inherit; font-family: Arial; background-color: #ffff99;"&gt;&lt;P style="font-style: inherit; font-family: inherit;"&gt;Autocall macro(&lt;SPAN style="font-style: inherit; font-family: inherit;"&gt;&lt;STRONG&gt;Name&lt;/STRONG&gt;&lt;/SPAN&gt;)&lt;/P&gt;&lt;P style="font-style: inherit; font-family: inherit;"&gt;&lt;SPAN style="font-style: inherit; font-family: inherit;"&gt;&lt;STRONG&gt;Name:&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding: 0 0 0 30px; font-style: inherit; font-family: inherit;"&gt;First Name&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;Depending on the number of macros involved, creating a library of corresponding editor abbreviations might be worthwhile. A large library means quite a lot of work.&lt;/P&gt;&lt;P&gt;There is a trade-off between supporting users who encounter common macros for the first time, and supporting the rarely used macros where all users are unfamiliar.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;best of luck&lt;/P&gt;&lt;P&gt;peterC&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 07 Sep 2013 10:55:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Autocall-macros-Parameter-descriptions-Compiling-without/m-p/96786#M20420</guid>
      <dc:creator>Peter_C</dc:creator>
      <dc:date>2013-09-07T10:55:06Z</dc:date>
    </item>
    <item>
      <title>Re: Autocall macros - Parameter descriptions, Compiling without executing</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Autocall-macros-Parameter-descriptions-Compiling-without/m-p/96787#M20421</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks everyone for your suggestions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For inline descriptions, the dummy macro declaration at the top works as long as it’s written within the same program.&amp;nbsp; The inline descriptions do not work in a separate program even if it is in the same project. If the inline descriptions were applicable across all programs within a project, you could potentially add a dummy macro declaration program to the project and run it separately. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The abbreviations are great for your own use but I understand you need to import/export these abbreviations in the GUI when sharing them. You aren’t able to attach them to a project file or link to them in a shared location.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It would be helpful if AUTOCALL macro libraries and %INCLUDE could incorporate directly all functionality of a regular macro declaration including inline descriptions. As well, the ability to link to external abbreviation libraries would be helpful - You could limit your project to only the related abbreviation libraries as needed. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Brian&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Oct 2013 21:30:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Autocall-macros-Parameter-descriptions-Compiling-without/m-p/96787#M20421</guid>
      <dc:creator>Brian</dc:creator>
      <dc:date>2013-10-28T21:30:10Z</dc:date>
    </item>
    <item>
      <title>Re: Autocall macros - Parameter descriptions, Compiling without executing</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Autocall-macros-Parameter-descriptions-Compiling-without/m-p/295222#M61675</link>
      <description>&lt;P&gt;Hi Chris,&lt;/P&gt;
&lt;P&gt;I know this thread is a few years old, but it looks like the functionality is still the same. Are there plans to improve this functionality to add the customized inline help for parameter descriptions on the calls to the macro for autocall macros? &amp;nbsp;I'll even take already compiled macros (ie: you call the macro once and then you get the parameter descriptions for the next call).&lt;/P&gt;
&lt;P&gt;The workarounds are pretty cumbersome if you have many autocall macros.&lt;/P&gt;
&lt;P&gt;Thanks!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 30 Aug 2016 15:27:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Autocall-macros-Parameter-descriptions-Compiling-without/m-p/295222#M61675</guid>
      <dc:creator>mbuchecker</dc:creator>
      <dc:date>2016-08-30T15:27:33Z</dc:date>
    </item>
  </channel>
</rss>

