<?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: error in datasetep while creating macro parameter in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/error-in-datasetep-while-creating-macro-parameter/m-p/437086#M108798</link>
    <description>&lt;P&gt;Well what you post is invalid.&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;arm has trt1 and trt2&lt;/PRE&gt;
&lt;P&gt;I not valid SAS code.&amp;nbsp; And&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;%let armn=;&lt;/PRE&gt;
&lt;P&gt;Will also create invalid code.&amp;nbsp; If that is not it, then check all the code up to the error, it may be happening well before this block.&amp;nbsp; Its hard to tell from small snippets of either code or logs.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 14 Feb 2018 13:55:59 GMT</pubDate>
    <dc:creator>RW9</dc:creator>
    <dc:date>2018-02-14T13:55:59Z</dc:date>
    <item>
      <title>error in datasetep while creating macro parameter</title>
      <link>https://communities.sas.com/t5/SAS-Programming/error-in-datasetep-while-creating-macro-parameter/m-p/437082#M108795</link>
      <description>&lt;P&gt;I am creating the below macro parameter and i get the following error.&lt;/P&gt;
&lt;PRE&gt;%local armn;
%let armn=;

arm has trt1 and trt2

data test;
     set test1;
     output;
          &amp;amp;arm="total";
          &amp;amp;armn=999;
     output;
run;




&lt;/PRE&gt;
&lt;P&gt;output; &amp;amp;arm.="total"; &amp;amp;armn.=9999; output;&lt;BR /&gt; -&lt;BR /&gt; 180&lt;BR /&gt;ERROR 180-322: Statement is not valid or it is used out of proper order.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;=9999;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The error is coming from armn and not sure why. Can anyone help me&lt;/P&gt;</description>
      <pubDate>Wed, 14 Feb 2018 13:52:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/error-in-datasetep-while-creating-macro-parameter/m-p/437082#M108795</guid>
      <dc:creator>vraj1</dc:creator>
      <dc:date>2018-02-14T13:52:11Z</dc:date>
    </item>
    <item>
      <title>Re: error in datasetep while creating macro parameter</title>
      <link>https://communities.sas.com/t5/SAS-Programming/error-in-datasetep-while-creating-macro-parameter/m-p/437086#M108798</link>
      <description>&lt;P&gt;Well what you post is invalid.&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;arm has trt1 and trt2&lt;/PRE&gt;
&lt;P&gt;I not valid SAS code.&amp;nbsp; And&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;%let armn=;&lt;/PRE&gt;
&lt;P&gt;Will also create invalid code.&amp;nbsp; If that is not it, then check all the code up to the error, it may be happening well before this block.&amp;nbsp; Its hard to tell from small snippets of either code or logs.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 14 Feb 2018 13:55:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/error-in-datasetep-while-creating-macro-parameter/m-p/437086#M108798</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2018-02-14T13:55:59Z</dc:date>
    </item>
    <item>
      <title>Re: error in datasetep while creating macro parameter</title>
      <link>https://communities.sas.com/t5/SAS-Programming/error-in-datasetep-while-creating-macro-parameter/m-p/437087#M108799</link>
      <description>&lt;P&gt;You need to educate yourself using this program as a learning tool.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;First, picture what you want the DATA step to look like (with no macro language at all).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Second, add this statement and then re-run:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;options mprint;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You will be able to see what the DATA step actually looks like, and compare it to your picture of what you wanted it to look like.&lt;/P&gt;</description>
      <pubDate>Wed, 14 Feb 2018 14:00:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/error-in-datasetep-while-creating-macro-parameter/m-p/437087#M108799</guid>
      <dc:creator>Astounding</dc:creator>
      <dc:date>2018-02-14T14:00:19Z</dc:date>
    </item>
  </channel>
</rss>

