<?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 in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Macro/m-p/389601#M93415</link>
    <description>&lt;P&gt;works now... thank you&lt;/P&gt;</description>
    <pubDate>Mon, 21 Aug 2017 18:10:12 GMT</pubDate>
    <dc:creator>JHE</dc:creator>
    <dc:date>2017-08-21T18:10:12Z</dc:date>
    <item>
      <title>Macro</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Macro/m-p/389597#M93412</link>
      <description>&lt;P&gt;Not sure why this code has the errors, could not find out why :&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;&lt;STRONG&gt;%macro&lt;/STRONG&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; dellob(lobname,lobdate);&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;PROC SQL;&lt;/P&gt;&lt;P&gt;delete * from reworko.rework&amp;amp;lobname_sumamry&lt;/P&gt;&lt;P&gt;WHERE MONTH=&amp;amp;lobdate;&lt;/P&gt;&lt;P&gt;QUIT;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;&lt;STRONG&gt;%mend&lt;/STRONG&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; dellob;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="3"&gt;%&lt;STRONG&gt;&lt;I&gt;dellob&lt;/I&gt;&lt;/STRONG&gt;(&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="3"&gt;0500&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New" size="3"&gt;,&lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="3"&gt;'2017-07'&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;);&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="3"&gt;Error message:&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;delete * from reworko.rework&amp;amp;lobname_sumamry WHERE MONTH=&amp;amp;lobdate; QUIT;&lt;/P&gt;&lt;P&gt;_&lt;/P&gt;&lt;P&gt;22&lt;/P&gt;&lt;P&gt;200&lt;/P&gt;&lt;P&gt;WARNING: Apparent symbolic reference LOBNAME_SUMAMRY not resolved.&lt;/P&gt;&lt;P&gt;ERROR 22-322: Syntax error, expecting one of the following: a name, ;, (, AS, WHERE.&lt;/P&gt;&lt;P&gt;ERROR 200-322: The symbol is not recognized and will be ignored.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 21 Aug 2017 17:59:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Macro/m-p/389597#M93412</guid>
      <dc:creator>JHE</dc:creator>
      <dc:date>2017-08-21T17:59:47Z</dc:date>
    </item>
    <item>
      <title>Re: Macro</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Macro/m-p/389599#M93413</link>
      <description>&lt;P&gt;Try:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%macro dellob(lobname,lobdate);
PROC SQL;
delete * from reworko.rework&amp;amp;lobname._sumamry
WHERE MONTH=&amp;amp;lobdate;
QUIT;
%mend dellob;
%dellob(0500,'2017-07');
 &lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;see message in log:&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;SPAN&gt;WARNING: Apparent symbolic reference &lt;STRONG&gt;LOBNAME_SUMAMRY&lt;/STRONG&gt; not resolved.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Your macro variable is LOBNAME so you need a dot to assing end of macro variable name.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 21 Aug 2017 18:04:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Macro/m-p/389599#M93413</guid>
      <dc:creator>Shmuel</dc:creator>
      <dc:date>2017-08-21T18:04:49Z</dc:date>
    </item>
    <item>
      <title>Re: Macro</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Macro/m-p/389600#M93414</link>
      <description>&lt;P&gt;The proper syntax for the PROC SQL DELETE statement is:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;DELETE FROM tablename ...&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="http://documentation.sas.com/?cdcId=pgmmvacdc&amp;amp;cdcVersion=9.4&amp;amp;docsetId=sqlproc&amp;amp;docsetTarget=n0wvt1t0egww81n1nrdqjvc32oyl.htm&amp;amp;locale=en" target="_blank"&gt;http://documentation.sas.com/?cdcId=pgmmvacdc&amp;amp;cdcVersion=9.4&amp;amp;docsetId=sqlproc&amp;amp;docsetTarget=n0wvt1t0egww81n1nrdqjvc32oyl.htm&amp;amp;locale=en&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 21 Aug 2017 18:06:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Macro/m-p/389600#M93414</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2017-08-21T18:06:43Z</dc:date>
    </item>
    <item>
      <title>Re: Macro</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Macro/m-p/389601#M93415</link>
      <description>&lt;P&gt;works now... thank you&lt;/P&gt;</description>
      <pubDate>Mon, 21 Aug 2017 18:10:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Macro/m-p/389601#M93415</guid>
      <dc:creator>JHE</dc:creator>
      <dc:date>2017-08-21T18:10:12Z</dc:date>
    </item>
  </channel>
</rss>

