<?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: a datastep inside a macro  &amp; log error change after the second run in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/a-datastep-inside-a-macro-log-error-change-after-the-second-run/m-p/40110#M8127</link>
    <description>i&amp;amp;mcy.IDO, i&amp;amp;mcy.IPSS and i&amp;amp;mcy.IPHP, are dataset variable not macro variable.&lt;BR /&gt;
Use "&lt;B&gt;If&lt;/B&gt;", instead of "&lt;B&gt;%If&lt;/B&gt;" , "&lt;B&gt;then&lt;/B&gt;" instead of "&lt;B&gt;%then&lt;/B&gt;", "&lt;B&gt;do&lt;/B&gt;" instead of "&lt;B&gt;%do&lt;/B&gt;" and "&lt;B&gt;end&lt;/B&gt;" instead of "&lt;B&gt;%end&lt;/B&gt;"</description>
    <pubDate>Thu, 11 Jun 2009 20:43:20 GMT</pubDate>
    <dc:creator>deleted_user</dc:creator>
    <dc:date>2009-06-11T20:43:20Z</dc:date>
    <item>
      <title>a datastep inside a macro  &amp; log error change after the second run</title>
      <link>https://communities.sas.com/t5/SAS-Programming/a-datastep-inside-a-macro-log-error-change-after-the-second-run/m-p/40107#M8124</link>
      <description>what is wrong with my following code? your help is really appreciated&lt;BR /&gt;
%let mcy=9;&lt;BR /&gt;
%macro read;&lt;BR /&gt;
filename in " path\fictional_data.txt";&lt;BR /&gt;
data read;&lt;BR /&gt;
infile in end=eof lrecl=10;&lt;BR /&gt;
input @1 i&amp;amp;mcy.IDO $CHAR2.&lt;BR /&gt;
@3 i&amp;amp;mcy.IPSS $CHAR5.&lt;BR /&gt;
@8 i&amp;amp;mcy.IPHP $CHAR3. &lt;BR /&gt;
;&lt;BR /&gt;
%if (i&amp;amp;mcy.IDO ne 'AL' and i&amp;amp;mcy.IDO ne 'AK' ) and (i&amp;amp;mcy.IPSS ne ' ')&lt;BR /&gt;
and (i&amp;amp;mcy.IPHP ne " " and i&amp;amp;mcy.IPHP ne "000" ) %then i&amp;amp;mcy.IDO="FR";&lt;BR /&gt;
%else &lt;BR /&gt;
%do ;&lt;BR /&gt;
i&amp;amp;mcy.IDO="XX";&lt;BR /&gt;
%end;&lt;BR /&gt;
run;&lt;BR /&gt;
%mend read;&lt;BR /&gt;
%read&lt;BR /&gt;
&lt;BR /&gt;
this is the log error i am getting &lt;BR /&gt;
&lt;BR /&gt;
NOTE: Line generated by the invoked macro "READ".&lt;BR /&gt;
5 run;&lt;BR /&gt;
---&lt;BR /&gt;
22&lt;BR /&gt;
MPRINT(READ): i9IDO="FR" run&lt;BR /&gt;
MLOGIC(READ): Ending execution.&lt;BR /&gt;
ERROR 22-322: Syntax error, expecting one of the following: !,&lt;BR /&gt;
!!, &amp;amp;, *, **, +, -, /, &amp;lt;, &amp;lt;=, &amp;lt;&amp;gt;, =, &amp;gt;, &amp;gt;&amp;lt;, &amp;gt;=,&lt;BR /&gt;
AND, EQ, GE, GT, IN, LE, LT, MAX, MIN, NE, NG,&lt;BR /&gt;
NL, NOTIN, OR, ^=, |, ||, ~=.&lt;BR /&gt;
&lt;BR /&gt;
************any help is appreciated!!!!!!!!!!!!

Message was edited by: statmn</description>
      <pubDate>Tue, 02 Jun 2009 16:52:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/a-datastep-inside-a-macro-log-error-change-after-the-second-run/m-p/40107#M8124</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2009-06-02T16:52:01Z</dc:date>
    </item>
    <item>
      <title>Re: a datastep inside a macro  &amp; log error change after the second run</title>
      <link>https://communities.sas.com/t5/SAS-Programming/a-datastep-inside-a-macro-log-error-change-after-the-second-run/m-p/40108#M8125</link>
      <description>You do not need to post a given query in multiple forums.&lt;BR /&gt;
&lt;BR /&gt;
Scott Barry&lt;BR /&gt;
SBBWorks, Inc.</description>
      <pubDate>Tue, 02 Jun 2009 17:15:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/a-datastep-inside-a-macro-log-error-change-after-the-second-run/m-p/40108#M8125</guid>
      <dc:creator>sbb</dc:creator>
      <dc:date>2009-06-02T17:15:18Z</dc:date>
    </item>
    <item>
      <title>Re: a datastep inside a macro  &amp; log error change after the second run</title>
      <link>https://communities.sas.com/t5/SAS-Programming/a-datastep-inside-a-macro-log-error-change-after-the-second-run/m-p/40109#M8126</link>
      <description>thanks for letting me know that

Message was edited by: statmn</description>
      <pubDate>Tue, 02 Jun 2009 18:51:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/a-datastep-inside-a-macro-log-error-change-after-the-second-run/m-p/40109#M8126</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2009-06-02T18:51:17Z</dc:date>
    </item>
    <item>
      <title>Re: a datastep inside a macro  &amp; log error change after the second run</title>
      <link>https://communities.sas.com/t5/SAS-Programming/a-datastep-inside-a-macro-log-error-change-after-the-second-run/m-p/40110#M8127</link>
      <description>i&amp;amp;mcy.IDO, i&amp;amp;mcy.IPSS and i&amp;amp;mcy.IPHP, are dataset variable not macro variable.&lt;BR /&gt;
Use "&lt;B&gt;If&lt;/B&gt;", instead of "&lt;B&gt;%If&lt;/B&gt;" , "&lt;B&gt;then&lt;/B&gt;" instead of "&lt;B&gt;%then&lt;/B&gt;", "&lt;B&gt;do&lt;/B&gt;" instead of "&lt;B&gt;%do&lt;/B&gt;" and "&lt;B&gt;end&lt;/B&gt;" instead of "&lt;B&gt;%end&lt;/B&gt;"</description>
      <pubDate>Thu, 11 Jun 2009 20:43:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/a-datastep-inside-a-macro-log-error-change-after-the-second-run/m-p/40110#M8127</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2009-06-11T20:43:20Z</dc:date>
    </item>
  </channel>
</rss>

