<?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: Macros - Some general questions in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Macros-Some-general-questions/m-p/749781#M235697</link>
    <description>&lt;P&gt;Q1 My version of SAS is too old to know anything about open code %if&lt;/P&gt;
&lt;P&gt;Q2 You can do that but it serves no purpose.&lt;/P&gt;
&lt;P&gt;&amp;nbsp; It sometimes is clearer to write an empty then: &lt;FONT face="courier new,courier"&gt;%if ...%then; %else ...;&lt;/FONT&gt; as the opposite test is more cumbersome.&lt;/P&gt;
&lt;P&gt;&amp;nbsp; That's rare though.&lt;/P&gt;
&lt;P&gt;Q3 See how I do it in the attached file. Not best practice, just my method. Similar to&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/159"&gt;@Tom&lt;/a&gt;&amp;nbsp;'s method except I don't have a help parameter. If the first parameter is missing or HELP then I call the help screen.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 23 Jun 2021 04:48:18 GMT</pubDate>
    <dc:creator>ChrisNZ</dc:creator>
    <dc:date>2021-06-23T04:48:18Z</dc:date>
    <item>
      <title>Macros - Some general questions</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Macros-Some-general-questions/m-p/749582#M235582</link>
      <description>&lt;P&gt;I have written the pseudo program below to demonstrate what I want to ask (I am writing a more complex function in reality).&lt;BR /&gt;&lt;BR /&gt;My macro function has 2 parameters, and as seen in the program I do an Nested %IF.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Question 1: If I understand it correctly, Nested %IF (i.e. a Macro Nested IF) is only allowed inside a "Macro Wrapper" (and not in "open code"), i.e. it should be between %Macro and %Mend.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Question 2: In the first %Else %Do in the program below, how would I tell SAS to do nothing, i.e. just continue? I am not entirely sure wether this makes sense either.&amp;nbsp;&lt;BR /&gt;Also, would it not be weird to exclude the code:&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;		%else %do; 
			Nothing.   * How do you tell SAS to do nothing, i.e. just continue?; 
		%end; &lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Since you then do not exhaust all the possible alternatives?&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;Question 3: I could in my macro write a help text (some kind of documentation) but it is quite uggly that the user must open the macro to read the help text. Any best practices for this?&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Question 3.1. Is it possible to add a help text of the kind shown with the picture:&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="SasStatistics_1-1624374270773.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/60617iA7C9DD461A43AD0C/image-size/medium?v=v2&amp;amp;px=400" role="button" title="SasStatistics_1-1624374270773.png" alt="SasStatistics_1-1624374270773.png" /&gt;&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;PRE&gt;&lt;CODE class=" language-sas"&gt;%Macro MyMacro(VariableA, VariableB); &lt;BR /&gt; /* Here I could write a help text to the user, but it is quite uggly that the user must open the function to get a feeling for it */&lt;BR /&gt;    %if &amp;amp;VariableA. = Yes %then %do; 

		%if &amp;amp;VariableB. = B1 %then %do; 
			Run some Code
		%end;

		%else %if &amp;amp;VariableB = B2 %then %do;
			Run some Code 
		%end; 

		%else %do; 
			Nothing.   * How do you tell SAS to do nothing, i.e. just continue?; 
		%end; 

	%end; 

	%else %do; 
		%put Note: VariableA should be Yes to run the program. ; 
	%end;
%mend MyMacro; &lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 22 Jun 2021 15:09:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Macros-Some-general-questions/m-p/749582#M235582</guid>
      <dc:creator>SasStatistics</dc:creator>
      <dc:date>2021-06-22T15:09:05Z</dc:date>
    </item>
    <item>
      <title>Re: Macros - Some general questions</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Macros-Some-general-questions/m-p/749593#M235588</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%else %do; 
/* No command here */
%end; &lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;This works, but is unnecessary. The logic of your code indicates that if you leave out this %else %do portion, that's what you should do, and then nothing happens if you don't meet any of the above conditions. This has nothing to do with macros specifically, it is computer logic.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%Macro MyMacro(VariableA, VariableB);  
    %if &amp;amp;VariableA. = Yes %then %do; 
        %if &amp;amp;VariableB. = B1 %then %do; 
			Run some Code
        %end;
        %else %if &amp;amp;VariableB = B2 %then %do;
			Run some Code 
        %end; 
    %end; 
    %else %do; 
        %put Note: VariableA should be Yes to run the program. ; 
    %end;
%mend MyMacro; &lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Again, why bother calling the macro arguments VariableA and VariableB? Using Variable as part of a variable name adds nothing beneficial, but it is harder to type and offers opportunities for error. I would name these variables A and B.&lt;/P&gt;</description>
      <pubDate>Tue, 22 Jun 2021 15:24:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Macros-Some-general-questions/m-p/749593#M235588</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2021-06-22T15:24:00Z</dc:date>
    </item>
    <item>
      <title>Re: Macros - Some general questions</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Macros-Some-general-questions/m-p/749594#M235589</link>
      <description>&lt;P&gt;You leave it blank.&lt;BR /&gt;&lt;BR /&gt;In fact, you don't even need the %ELSE/%DO.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%else %do;

%end;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;There is also LEAVE/CONTINUE.&lt;BR /&gt;&lt;A href="https://blogs.sas.com/content/iml/2017/03/15/leave-continue-sas.html" target="_blank" rel="noopener"&gt;https://blogs.sas.com/content/iml/2017/03/15/leave-continue-sas.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 22 Jun 2021 15:27:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Macros-Some-general-questions/m-p/749594#M235589</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2021-06-22T15:27:44Z</dc:date>
    </item>
    <item>
      <title>Re: Macros - Some general questions</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Macros-Some-general-questions/m-p/749595#M235590</link>
      <description>&lt;P&gt;To do nothing do not put anything between the %do; %end; Though in your example the %else is not needed, an if the purpose is &lt;STRONG&gt;not&lt;/STRONG&gt; to do anything seldom would be unless you want a place holder for later code insertion.&lt;/P&gt;
&lt;P&gt;Especially do not place a non-macro language comment.&lt;/P&gt;
&lt;P&gt;Your Example macro has unbalanced %if %then %do as written. You have an %end without a %do. So your "nesting is incorrect as is.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;%else %do;
%end;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you want to place a comment in a macro you have to use the /*&amp;nbsp; comment text*/ or %*comment text; style of comments. Otherwise a comment like *comment text; &lt;STRONG&gt;is &lt;/STRONG&gt;generated code and can cause some entertaining issues depending on the content.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 22 Jun 2021 15:24:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Macros-Some-general-questions/m-p/749595#M235590</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2021-06-22T15:24:54Z</dc:date>
    </item>
    <item>
      <title>Re: Macros - Some general questions</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Macros-Some-general-questions/m-p/749666#M235636</link>
      <description>Thanks Paige. Used VariableA and VariableB in this demo program for clarity. &lt;BR /&gt;&lt;BR /&gt;Ps. Must say I am suprised you did not have an answer to all the questions in the post as you usually do.. &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;</description>
      <pubDate>Tue, 22 Jun 2021 18:44:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Macros-Some-general-questions/m-p/749666#M235636</guid>
      <dc:creator>SasStatistics</dc:creator>
      <dc:date>2021-06-22T18:44:48Z</dc:date>
    </item>
    <item>
      <title>Re: Macros - Some general questions</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Macros-Some-general-questions/m-p/749669#M235639</link>
      <description>&lt;BLOCKQUOTE&gt;
&lt;P&gt;&lt;SPAN&gt;Used VariableA and VariableB in this demo program for clarity.&lt;/SPAN&gt;&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;
&lt;P&gt;What else can they be but variables? If you name them A and B, everyone knows they are not giraffes nor are they restaurants ... they have to be variables, they can't be anything else.&lt;/P&gt;</description>
      <pubDate>Tue, 22 Jun 2021 18:55:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Macros-Some-general-questions/m-p/749669#M235639</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2021-06-22T18:55:50Z</dc:date>
    </item>
    <item>
      <title>Re: Macros - Some general questions</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Macros-Some-general-questions/m-p/749676#M235644</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/10892"&gt;@PaigeMiller&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;BLOCKQUOTE&gt;
&lt;P&gt;&lt;SPAN&gt;Used VariableA and VariableB in this demo program for clarity.&lt;/SPAN&gt;&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;
&lt;P&gt;What else can they be but variables? If you name them A and B, everyone knows they are not giraffes nor are they restaurants ... they have to be variables, they can't be anything else.&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;The name VARIABLEA makes sense if the value of the parameter is the name of the variable to be used in the SAS code that the macro generates.&amp;nbsp; Otherwise users might use a value instead of name when calling the macro.&lt;/P&gt;</description>
      <pubDate>Tue, 22 Jun 2021 19:10:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Macros-Some-general-questions/m-p/749676#M235644</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2021-06-22T19:10:51Z</dc:date>
    </item>
    <item>
      <title>Re: Macros - Some general questions</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Macros-Some-general-questions/m-p/749748#M235677</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/381436"&gt;@SasStatistics&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In response to your questions:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;
&lt;P&gt;&lt;SPAN&gt;Question 1: If I understand it correctly, Nested %IF (i.e. a Macro Nested IF) is only allowed inside a "Macro Wrapper" (and not in "open code"), i.e. it should be between %Macro and %Mend.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Answer 1: Correct.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;
&lt;P&gt;&lt;SPAN&gt;Question 2: In the first %Else %Do in the program below, how would I tell SAS to do nothing, i.e. just continue? I am not entirely sure wether this makes sense either.&amp;nbsp;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Also, would it not be weird to exclude the code:&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Answer 2: If you only want action to be taken when &lt;FONT face="courier new,courier"&gt;%if&lt;/FONT&gt; conditions are satisfied, then there is no need to have &lt;FONT face="courier new,courier"&gt;%else-%do-%end&lt;/FONT&gt; as no action is required.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;
&lt;P&gt;&lt;SPAN&gt;Question 3: I could in my macro write a help text (some kind of documentation) but it is quite uggly that the user must open the macro to read the help text. Any best practices for this?&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Answer 3: I would suggest that this is subjective, someone else might see this this as due diligence or attention to detail. I'm not aware of any best practice other than to document your code, which implies someone will be reading the comments.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;
&lt;P&gt;&lt;SPAN&gt;Question 3.1. Is it possible to add a help text of the kind shown with the picture:&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Answer 3.1: If you really don't want the macro definition to be read, then one idea (that works in EG 8.2) is to make the first argument to the macro be a description and provide an inline comment, then when you type the macro name in the program editor followed by a '(' then the description will appear as in the below screen shot. You can just enter a comma (e.g., &lt;FONT face="courier new,courier"&gt;%ds_info(,sashelp,class)&lt;/FONT&gt;) to move on to the next argument.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Amir_1-1624401575351.png" style="width: 999px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/60638iA58A284152CAC206/image-size/large?v=v2&amp;amp;px=999" role="button" title="Amir_1-1624401575351.png" alt="Amir_1-1624401575351.png" /&gt;&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;HTH&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks &amp;amp; kind regards,&lt;/P&gt;
&lt;P&gt;Amir.&lt;/P&gt;</description>
      <pubDate>Tue, 22 Jun 2021 22:47:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Macros-Some-general-questions/m-p/749748#M235677</guid>
      <dc:creator>Amir</dc:creator>
      <dc:date>2021-06-22T22:47:06Z</dc:date>
    </item>
    <item>
      <title>Re: Macros - Some general questions</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Macros-Some-general-questions/m-p/749749#M235678</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13884"&gt;@ballardw&lt;/a&gt;, I too initially thought there was an extra &lt;FONT face="courier new,courier"&gt;%end&lt;/FONT&gt;, but the matching &lt;FONT face="courier new,courier"&gt;%do&lt;/FONT&gt; can be found on the very first line,&amp;nbsp;&lt;SPAN style="font-family: inherit;"&gt;after scrolling to the far right of the screen. Some formatting issues at play.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-family: inherit;"&gt;Kind regards,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-family: inherit;"&gt;Amir.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 22 Jun 2021 22:54:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Macros-Some-general-questions/m-p/749749#M235678</guid>
      <dc:creator>Amir</dc:creator>
      <dc:date>2021-06-22T22:54:40Z</dc:date>
    </item>
    <item>
      <title>Re: Macros - Some general questions</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Macros-Some-general-questions/m-p/749752#M235680</link>
      <description>&lt;P&gt;Personally I code the %MACRO statement in a form that serves as the documentation.&amp;nbsp; For example see&amp;nbsp;&lt;A href="https://github.com/sasutils/macros/blob/master/direxist.sas" target="_blank"&gt;https://github.com/sasutils/macros/blob/master/direxist.sas&lt;/A&gt;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%macro direxist
/*----------------------------------------------------------------------
Test if directory exists
----------------------------------------------------------------------*/
(path    /* Name of directory to test for existance */
);&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;With display manager I even have command macro that searches for the file in the autocall library a pulls the %MACRO statement from the file and converts into a macro call and pastes into into the program editor.&amp;nbsp; If you are using Enterprise Guide or SAS/Studio you will have look for an alternative method for doing that.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can code the macro to include a help option.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%macro mymacro(....,help=0);
%if "&amp;amp;help" ne "0" %then %do;
  %put To use %MYMACRO ....;
  %put ....;
  %return;
%end;
....
%mend;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Then users can ask for help and it will print in the log.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%mymacro(help=Yes);&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 22 Jun 2021 22:59:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Macros-Some-general-questions/m-p/749752#M235680</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2021-06-22T22:59:29Z</dc:date>
    </item>
    <item>
      <title>Re: Macros - Some general questions</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Macros-Some-general-questions/m-p/749781#M235697</link>
      <description>&lt;P&gt;Q1 My version of SAS is too old to know anything about open code %if&lt;/P&gt;
&lt;P&gt;Q2 You can do that but it serves no purpose.&lt;/P&gt;
&lt;P&gt;&amp;nbsp; It sometimes is clearer to write an empty then: &lt;FONT face="courier new,courier"&gt;%if ...%then; %else ...;&lt;/FONT&gt; as the opposite test is more cumbersome.&lt;/P&gt;
&lt;P&gt;&amp;nbsp; That's rare though.&lt;/P&gt;
&lt;P&gt;Q3 See how I do it in the attached file. Not best practice, just my method. Similar to&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/159"&gt;@Tom&lt;/a&gt;&amp;nbsp;'s method except I don't have a help parameter. If the first parameter is missing or HELP then I call the help screen.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 23 Jun 2021 04:48:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Macros-Some-general-questions/m-p/749781#M235697</guid>
      <dc:creator>ChrisNZ</dc:creator>
      <dc:date>2021-06-23T04:48:18Z</dc:date>
    </item>
    <item>
      <title>Re: Macros - Some general questions</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Macros-Some-general-questions/m-p/749782#M235698</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/22588"&gt;@Amir&lt;/a&gt; unfortunately the description is only displayed if the macro is called in the same file it is defined. The description won't be shown if the macro is loaded by autocall/sasautos.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Question 1 again: Nesting also occurs if you use %include in the %then (%else) part of the if statement and the included program uses an %if statement.&lt;/P&gt;</description>
      <pubDate>Wed, 23 Jun 2021 04:48:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Macros-Some-general-questions/m-p/749782#M235698</guid>
      <dc:creator>andreas_lds</dc:creator>
      <dc:date>2021-06-23T04:48:40Z</dc:date>
    </item>
    <item>
      <title>Re: Macros - Some general questions</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Macros-Some-general-questions/m-p/749804#M235705</link>
      <description>Haha true!</description>
      <pubDate>Wed, 23 Jun 2021 07:29:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Macros-Some-general-questions/m-p/749804#M235705</guid>
      <dc:creator>SasStatistics</dc:creator>
      <dc:date>2021-06-23T07:29:19Z</dc:date>
    </item>
    <item>
      <title>Re: Macros - Some general questions</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Macros-Some-general-questions/m-p/749807#M235707</link>
      <description>&lt;P&gt;Thanks &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/159"&gt;@Tom&lt;/a&gt; . In the second alternative with the help option, what is the purpose of the %return statement?&lt;BR /&gt;&lt;BR /&gt;Reading the documentation: &lt;A href="https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/mcrolref/p0qyygqt5a69xnn1rhfju3kjs8al.htm" target="_blank" rel="noopener"&gt;https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/mcrolref/p0qyygqt5a69xnn1rhfju3kjs8al.htm&lt;/A&gt; &lt;BR /&gt;&lt;BR /&gt;My guess is that the purpose is that if the user wants to see the help, the "total macro" is not run, only the help text is displayed?&lt;/P&gt;</description>
      <pubDate>Wed, 23 Jun 2021 07:59:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Macros-Some-general-questions/m-p/749807#M235707</guid>
      <dc:creator>SasStatistics</dc:creator>
      <dc:date>2021-06-23T07:59:22Z</dc:date>
    </item>
    <item>
      <title>Re: Macros - Some general questions</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Macros-Some-general-questions/m-p/749826#M235719</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/15475"&gt;@andreas_lds&lt;/a&gt;, good to know; thanks for sharing.&lt;/P&gt;</description>
      <pubDate>Wed, 23 Jun 2021 10:49:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Macros-Some-general-questions/m-p/749826#M235719</guid>
      <dc:creator>Amir</dc:creator>
      <dc:date>2021-06-23T10:49:13Z</dc:date>
    </item>
  </channel>
</rss>

