<?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 Studio</title>
    <link>https://communities.sas.com/t5/SAS-Studio/MACRO/m-p/364039#M2642</link>
    <description>&lt;P&gt;Proc GCHART and PLOT are old. If you're developing actual working code I would recommend a switch to SGPLOT.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sat, 03 Jun 2017 20:56:04 GMT</pubDate>
    <dc:creator>Reeza</dc:creator>
    <dc:date>2017-06-03T20:56:04Z</dc:date>
    <item>
      <title>MACRO</title>
      <link>https://communities.sas.com/t5/SAS-Studio/MACRO/m-p/363993#M2638</link>
      <description>&lt;P&gt;Please help me to convert the following sas code to &amp;nbsp;macros&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1, &amp;nbsp;proc gchart data=HTWT ;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;vbar gender/sumvar=weight;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;Title" Average weigt by Gender";&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;2, &amp;nbsp;proc plot data=HTWT;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;Title"Scatter plot";&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;plot &amp;amp;height*&amp;amp;weight;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;run;&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 08:26:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/MACRO/m-p/363993#M2638</guid>
      <dc:creator>NVN</dc:creator>
      <dc:date>2017-06-03T08:26:25Z</dc:date>
    </item>
    <item>
      <title>Re: MACRO</title>
      <link>https://communities.sas.com/t5/SAS-Studio/MACRO/m-p/363994#M2639</link>
      <description>&lt;P&gt;The macro should have parameters, here you have dsetin, height and weight as positional parameters. if in these parameters if you pass the dataset name and variable names you will get graph&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%macro plot(dsetin,height,weight);
proc gplot data=&amp;amp;dsetin;
&amp;nbsp; &amp;nbsp; &amp;nbsp;Title"Scatter plot";
&amp;nbsp; &amp;nbsp; &amp;nbsp;plot &amp;amp;height*&amp;amp;weight;
&amp;nbsp; &amp;nbsp; &amp;nbsp;run;
%mend;


%plot(HTWT,height,weight);&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;similarly you could try for the other&lt;/P&gt;</description>
      <pubDate>Sat, 03 Jun 2017 08:38:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/MACRO/m-p/363994#M2639</guid>
      <dc:creator>Jagadishkatam</dc:creator>
      <dc:date>2017-06-03T08:38:43Z</dc:date>
    </item>
    <item>
      <title>Re: MACRO</title>
      <link>https://communities.sas.com/t5/SAS-Studio/MACRO/m-p/364039#M2642</link>
      <description>&lt;P&gt;Proc GCHART and PLOT are old. If you're developing actual working code I would recommend a switch to SGPLOT.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 03 Jun 2017 20:56:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/MACRO/m-p/364039#M2642</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2017-06-03T20:56:04Z</dc:date>
    </item>
  </channel>
</rss>

