<?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: anything wrong with the macro in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/anything-wrong-with-the-macro/m-p/302672#M60746</link>
    <description>&lt;P&gt;Many users here don't want to download Excel files because of virus potential, others have such things blocked by security software. Also if you give us Excel we have to create a SAS data set and due to the non-existent constraints on Excel data cells the result we end up with may not have variables of the same type (numeric or character) and even values.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The instructions here will allow you to create data step code that you can paste to the forume or attach as a TEXT file to create a data set we can test code against: &lt;A href="https://communities.sas.com/t5/SAS-Communities-Library/How-to-create-a-data-step-version-of-your-data-AKA-generate/ta-p/258712" target="_blank"&gt;https://communities.sas.com/t5/SAS-Communities-Library/How-to-create-a-data-step-version-of-your-data-AKA-generate/ta-p/258712&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;A very likely cause is that you are missing a ; to end the create table statement and&amp;nbsp; missing quit; to end the Proc Sql&lt;/P&gt;</description>
    <pubDate>Wed, 05 Oct 2016 14:32:50 GMT</pubDate>
    <dc:creator>ballardw</dc:creator>
    <dc:date>2016-10-05T14:32:50Z</dc:date>
    <item>
      <title>anything wrong with the macro</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/anything-wrong-with-the-macro/m-p/302671#M60745</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Why there is nothing for table&amp;nbsp;&lt;SPAN&gt;stack_monthly? Anything wrong with the macro? I attached part of the data for&amp;nbsp;chargedisb. Please help, thanks!&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;%macro pull(stack, where);&lt;BR /&gt;PROC SQL;&lt;BR /&gt;CREATE TABLE &amp;amp;stack. AS&lt;BR /&gt;SELECT&lt;BR /&gt;*&lt;BR /&gt;FROM&lt;BR /&gt;chargedisb&lt;BR /&gt;&amp;amp;WHERE.&lt;/P&gt;&lt;P&gt;%mend;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;%pull(stack_monthly, where month3 ='January' );&lt;BR /&gt;%pull(stack_ytd, where month3 is not null );&lt;/P&gt;</description>
      <pubDate>Wed, 05 Oct 2016 14:29:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/anything-wrong-with-the-macro/m-p/302671#M60745</guid>
      <dc:creator>zhangda</dc:creator>
      <dc:date>2016-10-05T14:29:18Z</dc:date>
    </item>
    <item>
      <title>Re: anything wrong with the macro</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/anything-wrong-with-the-macro/m-p/302672#M60746</link>
      <description>&lt;P&gt;Many users here don't want to download Excel files because of virus potential, others have such things blocked by security software. Also if you give us Excel we have to create a SAS data set and due to the non-existent constraints on Excel data cells the result we end up with may not have variables of the same type (numeric or character) and even values.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The instructions here will allow you to create data step code that you can paste to the forume or attach as a TEXT file to create a data set we can test code against: &lt;A href="https://communities.sas.com/t5/SAS-Communities-Library/How-to-create-a-data-step-version-of-your-data-AKA-generate/ta-p/258712" target="_blank"&gt;https://communities.sas.com/t5/SAS-Communities-Library/How-to-create-a-data-step-version-of-your-data-AKA-generate/ta-p/258712&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;A very likely cause is that you are missing a ; to end the create table statement and&amp;nbsp; missing quit; to end the Proc Sql&lt;/P&gt;</description>
      <pubDate>Wed, 05 Oct 2016 14:32:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/anything-wrong-with-the-macro/m-p/302672#M60746</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2016-10-05T14:32:50Z</dc:date>
    </item>
    <item>
      <title>Re: anything wrong with the macro</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/anything-wrong-with-the-macro/m-p/302683#M60747</link>
      <description>&lt;P&gt;Assuming you fix the errors already pointed out ...&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It looks like your month values are centered.&amp;nbsp; The actual value would never be "January" because there would be leading blanks.&amp;nbsp; In SAS, "January" and "&amp;nbsp;&amp;nbsp; January" are different.&lt;/P&gt;</description>
      <pubDate>Wed, 05 Oct 2016 14:58:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/anything-wrong-with-the-macro/m-p/302683#M60747</guid>
      <dc:creator>Astounding</dc:creator>
      <dc:date>2016-10-05T14:58:44Z</dc:date>
    </item>
  </channel>
</rss>

