<?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: Macro call without semi-column? in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Macro-call-without-semi-column/m-p/751047#M236352</link>
    <description>Thanks Kurt. Thanks Tom. I see now.&lt;BR /&gt;I never use a macro call directly within a data step, procedure or global statement. I only use it as standalone or within quotes in a put statement/call execute routine. So it explains it all.</description>
    <pubDate>Tue, 29 Jun 2021 19:38:14 GMT</pubDate>
    <dc:creator>xxformat_com</dc:creator>
    <dc:date>2021-06-29T19:38:14Z</dc:date>
    <item>
      <title>Macro call without semi-column?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Macro-call-without-semi-column/m-p/751037#M236344</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I've heard for the first time during a SAS Institute webinar that no semi-column should be used after a macro call. The reason is that it would occasionally create a bug. I've programmed over 20 years in SAS using a semi-column without encountering any issue. Do you know about more about this rule? Was it always the case? Do you have an example of issue?&lt;/P&gt;&lt;P&gt;Kind Regards,&lt;/P&gt;</description>
      <pubDate>Tue, 29 Jun 2021 18:42:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Macro-call-without-semi-column/m-p/751037#M236344</guid>
      <dc:creator>xxformat_com</dc:creator>
      <dc:date>2021-06-29T18:42:34Z</dc:date>
    </item>
    <item>
      <title>Re: Macro call without semi-column?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Macro-call-without-semi-column/m-p/751038#M236345</link>
      <description>&lt;P&gt;I have heard this, and I never use a semi-colon after a macro call.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;However, I cannot provide an example where the semi-colon after the macro call causes a problem.&lt;/P&gt;</description>
      <pubDate>Tue, 29 Jun 2021 18:49:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Macro-call-without-semi-column/m-p/751038#M236345</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2021-06-29T18:49:58Z</dc:date>
    </item>
    <item>
      <title>Re: Macro call without semi-column?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Macro-call-without-semi-column/m-p/751040#M236347</link>
      <description>&lt;P&gt;The rule is that you cannot insert a sem-colon into the middle of a statement.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;But extra semi-colons between statements normally does not cause any trouble (which is probably why you have not had any issues).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So if the macro generates only part of statement (some times call macro functions) then adding a semi-colon after the macro function call would insert the semi-colon into the middle of the statement.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 29 Jun 2021 18:53:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Macro-call-without-semi-column/m-p/751040#M236347</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2021-06-29T18:53:43Z</dc:date>
    </item>
    <item>
      <title>Re: Macro call without semi-column?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Macro-call-without-semi-column/m-p/751046#M236351</link>
      <description>&lt;P&gt;See this:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%macro datasets;
%do y = 2000 %to 2021;
  ds_&amp;amp;y.
%end;
%mend;

data want;
set
  %datasets; /* this semicolon causes trouble */
  indsname=ds
;
dsname = ds;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 29 Jun 2021 19:14:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Macro-call-without-semi-column/m-p/751046#M236351</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2021-06-29T19:14:54Z</dc:date>
    </item>
    <item>
      <title>Re: Macro call without semi-column?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Macro-call-without-semi-column/m-p/751047#M236352</link>
      <description>Thanks Kurt. Thanks Tom. I see now.&lt;BR /&gt;I never use a macro call directly within a data step, procedure or global statement. I only use it as standalone or within quotes in a put statement/call execute routine. So it explains it all.</description>
      <pubDate>Tue, 29 Jun 2021 19:38:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Macro-call-without-semi-column/m-p/751047#M236352</guid>
      <dc:creator>xxformat_com</dc:creator>
      <dc:date>2021-06-29T19:38:14Z</dc:date>
    </item>
    <item>
      <title>Re: Macro call without semi-column?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Macro-call-without-semi-column/m-p/751048#M236353</link>
      <description>Thanks Tom</description>
      <pubDate>Tue, 29 Jun 2021 19:38:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Macro-call-without-semi-column/m-p/751048#M236353</guid>
      <dc:creator>xxformat_com</dc:creator>
      <dc:date>2021-06-29T19:38:40Z</dc:date>
    </item>
  </channel>
</rss>

