<?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 ERROR MSG, CONFUSED in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/ERROR-MSG-CONFUSED/m-p/883183#M348973</link>
    <description>&lt;P&gt;I have a macro (shorted version below) and run well without error MSG.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The un-shorted version macro however gets a confusing ERROR MSG(below). What confusing is the code are identical.&lt;/P&gt;
&lt;P&gt;But the MSG is not wanted since I am running with a huge loop.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Any one?!&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%macro n_parse(stx, endx, byper);
/*only sect on the spots needed to speedup*/
	
	data txx;
	do i=&amp;amp;stx. to &amp;amp;endx. by &amp;amp;byper.;
	output;
	end;
	run;quit;
%mend;

%n_parse(500, 1000, 5);&lt;/CODE&gt;&lt;/PRE&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;1           data txx;     do i=&amp;amp;stx. to &amp;amp;endx. by &amp;amp;byper.;     output;     end;     run;
                                                         -
                                                         22
ERROR 22-322: Syntax error, expecting one of the following: a name, a quoted string,
              a numeric constant, a datetime constant, a missing value, INPUT, PUT.
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Sat, 01 Jul 2023 06:14:03 GMT</pubDate>
    <dc:creator>hellohere</dc:creator>
    <dc:date>2023-07-01T06:14:03Z</dc:date>
    <item>
      <title>ERROR MSG, CONFUSED</title>
      <link>https://communities.sas.com/t5/SAS-Programming/ERROR-MSG-CONFUSED/m-p/883183#M348973</link>
      <description>&lt;P&gt;I have a macro (shorted version below) and run well without error MSG.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The un-shorted version macro however gets a confusing ERROR MSG(below). What confusing is the code are identical.&lt;/P&gt;
&lt;P&gt;But the MSG is not wanted since I am running with a huge loop.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Any one?!&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%macro n_parse(stx, endx, byper);
/*only sect on the spots needed to speedup*/
	
	data txx;
	do i=&amp;amp;stx. to &amp;amp;endx. by &amp;amp;byper.;
	output;
	end;
	run;quit;
%mend;

%n_parse(500, 1000, 5);&lt;/CODE&gt;&lt;/PRE&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;1           data txx;     do i=&amp;amp;stx. to &amp;amp;endx. by &amp;amp;byper.;     output;     end;     run;
                                                         -
                                                         22
ERROR 22-322: Syntax error, expecting one of the following: a name, a quoted string,
              a numeric constant, a datetime constant, a missing value, INPUT, PUT.
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sat, 01 Jul 2023 06:14:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/ERROR-MSG-CONFUSED/m-p/883183#M348973</guid>
      <dc:creator>hellohere</dc:creator>
      <dc:date>2023-07-01T06:14:03Z</dc:date>
    </item>
    <item>
      <title>Re: ERROR MSG, CONFUSED</title>
      <link>https://communities.sas.com/t5/SAS-Programming/ERROR-MSG-CONFUSED/m-p/883184#M348974</link>
      <description>&lt;P&gt;It's no use showing us the code that works. To help you with failing code, we need to see&amp;nbsp;&lt;EM&gt;that&lt;/EM&gt; code, and the complete log from it.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;From the log snippet, it looks like the macro references were not resolved. Are there any macro quoting functions involved?&lt;/P&gt;</description>
      <pubDate>Sat, 01 Jul 2023 06:26:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/ERROR-MSG-CONFUSED/m-p/883184#M348974</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2023-07-01T06:26:23Z</dc:date>
    </item>
    <item>
      <title>Re: ERROR MSG, CONFUSED</title>
      <link>https://communities.sas.com/t5/SAS-Programming/ERROR-MSG-CONFUSED/m-p/883192#M348978</link>
      <description>&lt;P&gt;That just means the BYPER is empty.&amp;nbsp; So you generated a data step like this one:&lt;/P&gt;
&lt;PRE&gt;1230  data _null_;
1231    do i=1 to 5 by ;
                       -
                       22
ERROR 22-322: Syntax error, expecting one of the following: a name, a quoted string, a numeric constant, a datetime constant,
              a missing value, INPUT, PUT.

1232    end;
1233  run;
&lt;/PRE&gt;</description>
      <pubDate>Sat, 01 Jul 2023 14:07:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/ERROR-MSG-CONFUSED/m-p/883192#M348978</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2023-07-01T14:07:42Z</dc:date>
    </item>
  </channel>
</rss>

