<?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 Macro do loop code not running in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Macro-do-loop-code-not-running/m-p/439243#M109587</link>
    <description>&lt;P&gt;I have tried closing down SAS and&amp;nbsp; some other tips I have read but I still just get my SAS code copied in the log but nothing else.&lt;/P&gt;&lt;P&gt;I have even simplified the program but I can't still run the macro.&lt;/P&gt;&lt;P&gt;What can I do?&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;*))%*))*/;
;;;;
%mend;
options notes;
run cancel; quit;
proc unk; run;


libname betra "C:\Users\SAS\Desktop\OPORTO\BETRA_tables";

proc sql;
Create table Tel1 as select Codebaliza, Telegram, compress(Telegram) as CT
from betra.b21;
quit;

%MACRO DO_BINAR;
%DO I = 1 %TO 45;
Data test;
set tel1;
N&amp;amp;I=substr(CT,&amp;amp;I,1) ;
run;
%END;
%MEND DO_BINAR;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;Thank you. I attach log.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 22 Feb 2018 12:32:26 GMT</pubDate>
    <dc:creator>vanmon1</dc:creator>
    <dc:date>2018-02-22T12:32:26Z</dc:date>
    <item>
      <title>Macro do loop code not running</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Macro-do-loop-code-not-running/m-p/439243#M109587</link>
      <description>&lt;P&gt;I have tried closing down SAS and&amp;nbsp; some other tips I have read but I still just get my SAS code copied in the log but nothing else.&lt;/P&gt;&lt;P&gt;I have even simplified the program but I can't still run the macro.&lt;/P&gt;&lt;P&gt;What can I do?&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;*))%*))*/;
;;;;
%mend;
options notes;
run cancel; quit;
proc unk; run;


libname betra "C:\Users\SAS\Desktop\OPORTO\BETRA_tables";

proc sql;
Create table Tel1 as select Codebaliza, Telegram, compress(Telegram) as CT
from betra.b21;
quit;

%MACRO DO_BINAR;
%DO I = 1 %TO 45;
Data test;
set tel1;
N&amp;amp;I=substr(CT,&amp;amp;I,1) ;
run;
%END;
%MEND DO_BINAR;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;Thank you. I attach log.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 22 Feb 2018 12:32:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Macro-do-loop-code-not-running/m-p/439243#M109587</guid>
      <dc:creator>vanmon1</dc:creator>
      <dc:date>2018-02-22T12:32:26Z</dc:date>
    </item>
    <item>
      <title>Re: Macro do loop code not running</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Macro-do-loop-code-not-running/m-p/439249#M109591</link>
      <description>The problem seems to be that you are not calling the macro. Try adding %DO_BINAR at the end of your program.</description>
      <pubDate>Thu, 22 Feb 2018 12:38:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Macro-do-loop-code-not-running/m-p/439249#M109591</guid>
      <dc:creator>s_lassen</dc:creator>
      <dc:date>2018-02-22T12:38:24Z</dc:date>
    </item>
    <item>
      <title>Re: Macro do loop code not running</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Macro-do-loop-code-not-running/m-p/439250#M109592</link>
      <description>&lt;P&gt;It seems you are not calling your macro.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You show have a line like&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%DO_BINAR&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 22 Feb 2018 12:38:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Macro-do-loop-code-not-running/m-p/439250#M109592</guid>
      <dc:creator>BrunoMueller</dc:creator>
      <dc:date>2018-02-22T12:38:48Z</dc:date>
    </item>
  </channel>
</rss>

