<?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 in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/MACRO/m-p/364000#M274975</link>
    <description>&lt;P&gt;without sample data it is not possible to present the accurate code.&amp;nbsp;This is an untested code&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It creates year wise separate dataset for means and univariate&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%macro test(dsetin,year,revenue);
%do i=2005 %to 2009;
proc means data=&amp;amp;dsetin;
where &amp;amp;year=&amp;amp;i;
var &amp;amp;revenue;
output out=means_&amp;amp;i. mean=;
run;

proc univariate data=&amp;amp;dsetin;
where &amp;amp;year=&amp;amp;i;
var &amp;amp;revenue;
output out=univariate_&amp;amp;i. mean=;
run;
%end;
%mend;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sat, 03 Jun 2017 10:32:20 GMT</pubDate>
    <dc:creator>Jagadishkatam</dc:creator>
    <dc:date>2017-06-03T10:32:20Z</dc:date>
    <item>
      <title>MACRO</title>
      <link>https://communities.sas.com/t5/SAS-Programming/MACRO/m-p/363995#M274974</link>
      <description>&lt;P&gt;Please help me to do the following problem.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Revenue informations are avilabe for different years from 2005 to 2009 with the variable "Revenue". write the sas macro which&amp;nbsp;&lt;/P&gt;&lt;P&gt;will applay "Means and univariable " procedure on each year for revenue avilabe.&lt;/P&gt;</description>
      <pubDate>Sat, 03 Jun 2017 09:19:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/MACRO/m-p/363995#M274974</guid>
      <dc:creator>NVN</dc:creator>
      <dc:date>2017-06-03T09:19:43Z</dc:date>
    </item>
    <item>
      <title>MACRO</title>
      <link>https://communities.sas.com/t5/SAS-Programming/MACRO/m-p/363997#M274976</link>
      <description>&lt;P&gt;Please help me to do the following problem.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Revenue informations are avilabe for different years from 2005 to 2009 with the variable "Revenue". write the sas macro which&amp;nbsp;&lt;/P&gt;&lt;P&gt;will applay "Means and univariable " procedure on each year for revenue avilabe.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 03 Jun 2017 09:51:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/MACRO/m-p/363997#M274976</guid>
      <dc:creator>NVN</dc:creator>
      <dc:date>2017-06-03T09:51:25Z</dc:date>
    </item>
    <item>
      <title>Re: MACRO</title>
      <link>https://communities.sas.com/t5/SAS-Programming/MACRO/m-p/364000#M274975</link>
      <description>&lt;P&gt;without sample data it is not possible to present the accurate code.&amp;nbsp;This is an untested code&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It creates year wise separate dataset for means and univariate&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%macro test(dsetin,year,revenue);
%do i=2005 %to 2009;
proc means data=&amp;amp;dsetin;
where &amp;amp;year=&amp;amp;i;
var &amp;amp;revenue;
output out=means_&amp;amp;i. mean=;
run;

proc univariate data=&amp;amp;dsetin;
where &amp;amp;year=&amp;amp;i;
var &amp;amp;revenue;
output out=univariate_&amp;amp;i. mean=;
run;
%end;
%mend;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 03 Jun 2017 10:32:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/MACRO/m-p/364000#M274975</guid>
      <dc:creator>Jagadishkatam</dc:creator>
      <dc:date>2017-06-03T10:32:20Z</dc:date>
    </item>
    <item>
      <title>Re: MACRO</title>
      <link>https://communities.sas.com/t5/SAS-Programming/MACRO/m-p/364001#M274977</link>
      <description>Please do not post the same question</description>
      <pubDate>Sat, 03 Jun 2017 10:33:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/MACRO/m-p/364001#M274977</guid>
      <dc:creator>Jagadishkatam</dc:creator>
      <dc:date>2017-06-03T10:33:07Z</dc:date>
    </item>
    <item>
      <title>Re: MACRO</title>
      <link>https://communities.sas.com/t5/SAS-Programming/MACRO/m-p/364012#M274978</link>
      <description>&lt;P&gt;I merged the two identical questions.&lt;/P&gt;</description>
      <pubDate>Sat, 03 Jun 2017 13:50:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/MACRO/m-p/364012#M274978</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2017-06-03T13:50:05Z</dc:date>
    </item>
  </channel>
</rss>

