<?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 SAS Macro in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/SAS-Macro/m-p/777945#M247596</link>
    <description>&lt;P&gt;&lt;SPAN&gt;Please can someone help tell me why the data Ycomple1 is not being created despite the data Ycomple exist.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;%macro multi;&lt;/SPAN&gt;&lt;/P&gt;
&lt;DIV&gt;
&lt;DIV&gt;data Ycomple1;&amp;nbsp; /*** This data is not created *****/;&lt;/DIV&gt;
&lt;DIV&gt;set Ycomple;&amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;SPAN&gt;&amp;nbsp;/ ** This data exist ****/;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;%do i=0 %to&amp;nbsp; 100;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;ipw&amp;amp;i=ipw*WGT&amp;amp;i;&lt;/DIV&gt;
&lt;DIV&gt;drop&amp;nbsp;WGT&amp;amp;i;&lt;/DIV&gt;
&lt;DIV&gt;&lt;STRONG&gt;%&lt;/STRONG&gt;end;&lt;/DIV&gt;
&lt;DIV&gt;run;&lt;/DIV&gt;
&lt;SPAN&gt;&lt;STRONG&gt;%mend&lt;/STRONG&gt;&amp;nbsp;multi;&lt;/SPAN&gt;&lt;/DIV&gt;</description>
    <pubDate>Tue, 02 Nov 2021 16:03:21 GMT</pubDate>
    <dc:creator>desireatem</dc:creator>
    <dc:date>2021-11-02T16:03:21Z</dc:date>
    <item>
      <title>SAS Macro</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-Macro/m-p/777945#M247596</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Please can someone help tell me why the data Ycomple1 is not being created despite the data Ycomple exist.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;%macro multi;&lt;/SPAN&gt;&lt;/P&gt;
&lt;DIV&gt;
&lt;DIV&gt;data Ycomple1;&amp;nbsp; /*** This data is not created *****/;&lt;/DIV&gt;
&lt;DIV&gt;set Ycomple;&amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;SPAN&gt;&amp;nbsp;/ ** This data exist ****/;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;%do i=0 %to&amp;nbsp; 100;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;ipw&amp;amp;i=ipw*WGT&amp;amp;i;&lt;/DIV&gt;
&lt;DIV&gt;drop&amp;nbsp;WGT&amp;amp;i;&lt;/DIV&gt;
&lt;DIV&gt;&lt;STRONG&gt;%&lt;/STRONG&gt;end;&lt;/DIV&gt;
&lt;DIV&gt;run;&lt;/DIV&gt;
&lt;SPAN&gt;&lt;STRONG&gt;%mend&lt;/STRONG&gt;&amp;nbsp;multi;&lt;/SPAN&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 02 Nov 2021 16:03:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-Macro/m-p/777945#M247596</guid>
      <dc:creator>desireatem</dc:creator>
      <dc:date>2021-11-02T16:03:21Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Macro</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-Macro/m-p/777947#M247597</link>
      <description>&lt;P&gt;put another semicolon after %end&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%end; ;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 02 Nov 2021 15:50:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-Macro/m-p/777947#M247597</guid>
      <dc:creator>ghosh</dc:creator>
      <dc:date>2021-11-02T15:50:31Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Macro</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-Macro/m-p/777949#M247599</link>
      <description>&lt;P&gt;That does not solve it.&lt;/P&gt;</description>
      <pubDate>Tue, 02 Nov 2021 16:04:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-Macro/m-p/777949#M247599</guid>
      <dc:creator>desireatem</dc:creator>
      <dc:date>2021-11-02T16:04:46Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Macro</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-Macro/m-p/777950#M247600</link>
      <description>&lt;P&gt;please show the error log&lt;/P&gt;</description>
      <pubDate>Tue, 02 Nov 2021 16:05:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-Macro/m-p/777950#M247600</guid>
      <dc:creator>ghosh</dc:creator>
      <dc:date>2021-11-02T16:05:40Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Macro</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-Macro/m-p/777953#M247603</link>
      <description>&lt;P&gt;Run the following and post the log then we can tell you why.&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;EDIT: I don't see the macro actually called so adding that in, just in case.&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;
options mprint symbolgen;
%macro multi;

data Ycomple1;
set Ycomple;
%do i=0 %to 4;
ipw&amp;amp;i=ipw*WGT&amp;amp;i;
drop WGT&amp;amp;i;
%end;
run;
%mend multi;



%multi;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/40563"&gt;@desireatem&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;&lt;SPAN&gt;Please can someone help tell me why the data Ycomple1 is not being created despite the data Ycomple exist.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;%macro multi;&lt;/SPAN&gt;&lt;/P&gt;
&lt;DIV&gt;
&lt;DIV&gt;data Ycomple1;&amp;nbsp; /*** This data is not created *****/;&lt;/DIV&gt;
&lt;DIV&gt;set Ycomple;&amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;SPAN&gt;&amp;nbsp;/ ** This data exist ****/;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;%do i=0 %to&amp;nbsp; 100;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;ipw&amp;amp;i=ipw*WGT&amp;amp;i;&lt;/DIV&gt;
&lt;DIV&gt;drop&amp;nbsp;WGT&amp;amp;i;&lt;/DIV&gt;
&lt;DIV&gt;&lt;STRONG&gt;%&lt;/STRONG&gt;end;&lt;/DIV&gt;
&lt;DIV&gt;run;&lt;/DIV&gt;
&lt;SPAN&gt;&lt;STRONG&gt;%mend&lt;/STRONG&gt;&amp;nbsp;multi;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 02 Nov 2021 16:08:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-Macro/m-p/777953#M247603</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2021-11-02T16:08:14Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Macro</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-Macro/m-p/777957#M247607</link>
      <description>&lt;P&gt;Thank you, you are right, it wasnt being called.&lt;/P&gt;</description>
      <pubDate>Tue, 02 Nov 2021 16:17:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-Macro/m-p/777957#M247607</guid>
      <dc:creator>desireatem</dc:creator>
      <dc:date>2021-11-02T16:17:46Z</dc:date>
    </item>
  </channel>
</rss>

