<?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: Macro not working in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Macro-not-working/m-p/203515#M37929</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you don't want to restart your SAS, here is some magic strings sometimes may work for you:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*))%*))*/;&lt;/P&gt;&lt;P&gt;;;;;&lt;/P&gt;&lt;P&gt;%mend;&lt;/P&gt;&lt;P&gt;options notes;&lt;/P&gt;&lt;P&gt;run cancel; quit;&lt;/P&gt;&lt;P&gt;proc unk; run;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Haikuo&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 17 Mar 2015 17:34:57 GMT</pubDate>
    <dc:creator>Haikuo</dc:creator>
    <dc:date>2015-03-17T17:34:57Z</dc:date>
    <item>
      <title>Macro not working</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Macro-not-working/m-p/203511#M37925</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, I'm new to macros and cannot figure out why this doesn't work:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a bunch of questions I'm running the chi-square test on comparing two groups so I'm trying to create a macro.&lt;/P&gt;&lt;P&gt;The question names are: &lt;/P&gt;&lt;P&gt;q1_volun&lt;/P&gt;&lt;P&gt;q1_sec&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;etc....&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;I ran the code without the macro and it worked fine using the question names.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: Courier New;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt; font-family: Courier New;"&gt;center&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; font-family: Courier New;"&gt; pagesize=&lt;/SPAN&gt;&lt;SPAN style="; color: #008080; font-size: 10pt; font-family: Courier New;"&gt;&lt;STRONG&gt;45&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; font-family: Courier New;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt; font-family: Courier New;"&gt;nonumber&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; font-family: Courier New;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt; font-family: Courier New;"&gt;nodate&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; font-family: Courier New;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt; font-family: Courier New;"&gt;symbolgen&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; font-family: Courier New;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: Courier New;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: Courier New;"&gt;%macro analysis(question);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: Courier New;"&gt;proc freq data=q1;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: Courier New;"&gt;tables group*&amp;amp;question./chisq;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: Courier New;"&gt;title "&amp;amp;question. - Chi-Sq - verifies info";&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: Courier New;"&gt;run;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: Courier New;"&gt;%mend analysis;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; font-family: Courier New;"&gt;%analysis (q1_vol);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: Courier New;"&gt;%analysis (q1_sec);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: Courier New;"&gt;Any help you can give is much appreciated!&amp;nbsp; Thanks!&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: Courier New;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Mar 2015 15:57:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Macro-not-working/m-p/203511#M37925</guid>
      <dc:creator>jcis7</dc:creator>
      <dc:date>2015-03-17T15:57:18Z</dc:date>
    </item>
    <item>
      <title>Re: Macro not working</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Macro-not-working/m-p/203512#M37926</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You would need to be more specific, what doesn't work, what errors/warnings in the log, maybe also what data are you using, provide a datastep with some test data.&amp;nbsp; The code seems fine.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Mar 2015 16:01:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Macro-not-working/m-p/203512#M37926</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2015-03-17T16:01:35Z</dc:date>
    </item>
    <item>
      <title>Re: Macro not working</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Macro-not-working/m-p/203513#M37927</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The macro looks fine, especially if the same code ran without using a macro.&amp;nbsp; One thing is suspect, though.&amp;nbsp; You have a line:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;center ... symbolgen;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;These are options, so the word OPTIONS should be there:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;options center ... symbolgen;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could that be the problem?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Mar 2015 16:18:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Macro-not-working/m-p/203513#M37927</guid>
      <dc:creator>Astounding</dc:creator>
      <dc:date>2015-03-17T16:18:24Z</dc:date>
    </item>
    <item>
      <title>Re: Macro not working</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Macro-not-working/m-p/203514#M37928</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you everyone! I closed out SAS and opened it and it miraculously worked.&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Mar 2015 17:25:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Macro-not-working/m-p/203514#M37928</guid>
      <dc:creator>jcis7</dc:creator>
      <dc:date>2015-03-17T17:25:53Z</dc:date>
    </item>
    <item>
      <title>Re: Macro not working</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Macro-not-working/m-p/203515#M37929</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you don't want to restart your SAS, here is some magic strings sometimes may work for you:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*))%*))*/;&lt;/P&gt;&lt;P&gt;;;;;&lt;/P&gt;&lt;P&gt;%mend;&lt;/P&gt;&lt;P&gt;options notes;&lt;/P&gt;&lt;P&gt;run cancel; quit;&lt;/P&gt;&lt;P&gt;proc unk; run;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Haikuo&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Mar 2015 17:34:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Macro-not-working/m-p/203515#M37929</guid>
      <dc:creator>Haikuo</dc:creator>
      <dc:date>2015-03-17T17:34:57Z</dc:date>
    </item>
  </channel>
</rss>

