<?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: Problem with Proc SGplot in a macro in Graphics Programming</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/Problem-with-Proc-SGplot-in-a-macro/m-p/377924#M13036</link>
    <description>&lt;P&gt;What do you mean by "not running?" Is there an error in the log? Might it be related to the "ods html close;" when I don't see anywhere where you open the html destination to output the plot?&lt;/P&gt;</description>
    <pubDate>Thu, 20 Jul 2017 20:51:38 GMT</pubDate>
    <dc:creator>collinelliot</dc:creator>
    <dc:date>2017-07-20T20:51:38Z</dc:date>
    <item>
      <title>Problem with Proc SGplot in a macro</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Problem-with-Proc-SGplot-in-a-macro/m-p/377922#M13035</link>
      <description>&lt;P&gt;I'm having trouble with this simple macro using SGplot, when I try to run it, SAS just doesn't do anything... it won't run through my code although I can still "Break" my submitted statements. It doesn't say that it's "running" it though.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;
%Macro plots(data, cholinevar, response, SNP, title);

PROC sGPLOT DATA = &amp;amp;data noautolegend;
vbar &amp;amp;cholinevar._4 / response = &amp;amp;response stat = mean group = &amp;amp;SNP groupdisplay = cluster limitstat = stderr ;
title "&amp;amp;title";
run;
PROC sGPLOT DATA = &amp;amp;data noautolegend;
reg x = &amp;amp;cholinevar y = &amp;amp;response /group = &amp;amp;SNP clm ;
title "&amp;amp;title";
run;

%mend plots;

%plots(input, cholinevar, Response, SNP, Title);&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;I don't understand why this code isn't running correctly, I've tried restarting SAS and my computer and it still won't run. The thing is, the first time I tried to run it, it worked but now it's not working. Running the pieces of the plot outside the macro can also work fine...&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;
PROC sgplot DATA = input noautolegend;
reg x = X y = Y /group = SNP clm ;
title "Title";
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;So yeah I don't understand why running the same thing outside the macro works fine but trying to use the macro causes SAS to hang and seem to do nothing.... Trying to rerun the "plots" macro will say that it's currently in use so I can't edit it unless I chose to break my submitted statements.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Edit 1: Figured out the error message when I close SAS, it'll say "Error: Macro parameter contains syntax error"&lt;/P&gt;
&lt;P&gt;The thing is this error message does NOT show up when I'm trying to implement the macro and only shows up if I try to quit SAS.&lt;/P&gt;</description>
      <pubDate>Fri, 21 Jul 2017 13:19:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Problem-with-Proc-SGplot-in-a-macro/m-p/377922#M13035</guid>
      <dc:creator>Leon27607</dc:creator>
      <dc:date>2017-07-21T13:19:16Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with Proc SGplot in a macro</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Problem-with-Proc-SGplot-in-a-macro/m-p/377924#M13036</link>
      <description>&lt;P&gt;What do you mean by "not running?" Is there an error in the log? Might it be related to the "ods html close;" when I don't see anywhere where you open the html destination to output the plot?&lt;/P&gt;</description>
      <pubDate>Thu, 20 Jul 2017 20:51:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Problem-with-Proc-SGplot-in-a-macro/m-p/377924#M13036</guid>
      <dc:creator>collinelliot</dc:creator>
      <dc:date>2017-07-20T20:51:38Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with Proc SGplot in a macro</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Problem-with-Proc-SGplot-in-a-macro/m-p/377925#M13037</link>
      <description>&lt;P&gt;Run the macro with MPRINT/SYMBOLGEN on and please run the SGPLOT code EXACTLY in an non macro version version&amp;nbsp;and post the log.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;option symbolgen mprint;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 20 Jul 2017 20:51:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Problem-with-Proc-SGplot-in-a-macro/m-p/377925#M13037</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2017-07-20T20:51:38Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with Proc SGplot in a macro</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Problem-with-Proc-SGplot-in-a-macro/m-p/377927#M13038</link>
      <description>&lt;P&gt;Do you have any other output destinations available?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;At the end of the first execution, you issue:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;ods html close;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So where is the output supposed to go the next time?&lt;/P&gt;</description>
      <pubDate>Thu, 20 Jul 2017 20:53:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Problem-with-Proc-SGplot-in-a-macro/m-p/377927#M13038</guid>
      <dc:creator>Astounding</dc:creator>
      <dc:date>2017-07-20T20:53:53Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with Proc SGplot in a macro</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Problem-with-Proc-SGplot-in-a-macro/m-p/377929#M13039</link>
      <description>&lt;P&gt;The log will tell you if all Destinations are closed.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;WARNING: No output destinations active.&lt;BR /&gt;NOTE: There were 19 observations read from the data set&lt;BR /&gt; SASHELP.CLASS.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 20 Jul 2017 20:59:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Problem-with-Proc-SGplot-in-a-macro/m-p/377929#M13039</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2017-07-20T20:59:33Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with Proc SGplot in a macro</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Problem-with-Proc-SGplot-in-a-macro/m-p/377932#M13040</link>
      <description>I've tried it without ods html close actually, but it still isn't working correctly.....</description>
      <pubDate>Thu, 20 Jul 2017 21:04:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Problem-with-Proc-SGplot-in-a-macro/m-p/377932#M13040</guid>
      <dc:creator>Leon27607</dc:creator>
      <dc:date>2017-07-20T21:04:32Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with Proc SGplot in a macro</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Problem-with-Proc-SGplot-in-a-macro/m-p/377935#M13041</link>
      <description>&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/93752"&gt;@collinelliot&lt;/a&gt; I've tried it even without ods html close, and by "not running" I mean if I run the macro, then try to call the macro in a statement using "%plots(input, cholinevar, Response, SNP, Title);" for some reason SAS just does nothing....(like nothing literally happens... I don't see it trying to "process" anything and I don't see anything in my log...)</description>
      <pubDate>Thu, 20 Jul 2017 21:06:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Problem-with-Proc-SGplot-in-a-macro/m-p/377935#M13041</guid>
      <dc:creator>Leon27607</dc:creator>
      <dc:date>2017-07-20T21:06:14Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with Proc SGplot in a macro</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Problem-with-Proc-SGplot-in-a-macro/m-p/377937#M13042</link>
      <description>&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13879"&gt;@Reeza&lt;/a&gt;, if I run it outside the macro, i mentioned it works and I get "&lt;BR /&gt;NOTE: Writing HTML Body file: sashtml.htm&lt;BR /&gt;NOTE: PROCEDURE SGPLOT used (Total process time):&lt;BR /&gt;      real time           1.85 seconds&lt;BR /&gt;      cpu time            0.81 seconds&lt;BR /&gt;&lt;BR /&gt;NOTE: Listing image output written to C:\Users\Name\Desktop\Projects\SGPlot1.png.&lt;BR /&gt;NOTE: There were 796 observations read from the data set DATA2.INPUTDATA."</description>
      <pubDate>Thu, 20 Jul 2017 21:08:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Problem-with-Proc-SGplot-in-a-macro/m-p/377937#M13042</guid>
      <dc:creator>Leon27607</dc:creator>
      <dc:date>2017-07-20T21:08:06Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with Proc SGplot in a macro</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Problem-with-Proc-SGplot-in-a-macro/m-p/377940#M13043</link>
      <description>&lt;P&gt;Where's the log from MPRINT/SYMBOLGEN. Why isn't your code showing in the log or did you just not post it?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 20 Jul 2017 21:13:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Problem-with-Proc-SGplot-in-a-macro/m-p/377940#M13043</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2017-07-20T21:13:43Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with Proc SGplot in a macro</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Problem-with-Proc-SGplot-in-a-macro/m-p/377955#M13044</link>
      <description>&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13879"&gt;@Reeza&lt;/a&gt; That was me running it OUTSIDE the macro so Mprint/symbolgen didn't show anything. If I try to use those and run the macro itself... as I mentioned I think SAS is not working properly. Nothing shows up in my log as though my code didn't even run. The thing is if I try to close SAS, only upon the moment I actually try to exit it I'll see an error message that says my Macro has an invalid expression or something(It's hard to tell what it really says in that split second). I've tried restarting SAS and my computer but it still doesn't fix this problem. I'm just wondering if my SAS is just "Broken" or if there's really something wrong with my code. I'm using SAS 9.4.</description>
      <pubDate>Thu, 20 Jul 2017 22:23:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Problem-with-Proc-SGplot-in-a-macro/m-p/377955#M13044</guid>
      <dc:creator>Leon27607</dc:creator>
      <dc:date>2017-07-20T22:23:33Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with Proc SGplot in a macro</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Problem-with-Proc-SGplot-in-a-macro/m-p/377958#M13045</link>
      <description>&lt;P&gt;Well, test the simplest case.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;What happens if you run the following code - and please post your log from it. If it works, start adding back your data and then adding your components of code ONE AT A TIME until either it doesn't or it works the way you want.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;options mprint symbolgen;
ods html;
%Macro plots(data, cholinevar, response, SNP, title);

PROC sGPLOT DATA = &amp;amp;data noautolegend;
vbar &amp;amp;cholinevar. / response = &amp;amp;response stat = mean ;
title "&amp;amp;title";
run;

%mend plots;

%plots(sashelp.class, sex, weight, SNP, Title);&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 20 Jul 2017 22:40:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Problem-with-Proc-SGplot-in-a-macro/m-p/377958#M13045</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2017-07-20T22:40:24Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with Proc SGplot in a macro</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Problem-with-Proc-SGplot-in-a-macro/m-p/377965#M13046</link>
      <description>&lt;P&gt;The "outside" code you show:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;PROC sgplot DATA = input noautolegend;
reg x = X y = Y /group = SNP clm ;
title "Title";
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Is NOT the same as the macro code would generate. The similar code section:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;PROC sGPLOT DATA = &amp;amp;data noautolegend;
reg x = &amp;amp;cholinevar y = &amp;amp;response /group = &amp;amp;SNP clm ;
title "&amp;amp;title";
run;
&lt;/PRE&gt;
&lt;P&gt;Would resolve to&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;PROC sGPLOT DATA = input noautolegend;
reg x = cholinevar y = response /group = SNP clm ;
title "title";
run;
&lt;/PRE&gt;
&lt;P&gt;when using the call&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;%plots(input, cholinevar, Response, SNP, Title);&lt;/PRE&gt;</description>
      <pubDate>Thu, 20 Jul 2017 23:55:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Problem-with-Proc-SGplot-in-a-macro/m-p/377965#M13046</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2017-07-20T23:55:53Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with Proc SGplot in a macro</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Problem-with-Proc-SGplot-in-a-macro/m-p/377976#M13047</link>
      <description>&lt;P&gt;I think the problem has to be somewhere earlier, in code you haven't shown.&amp;nbsp; Maybe unmatched quotes.&amp;nbsp; Or an unclosed /* comment block.&amp;nbsp; Or unclosed %macro statement.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Which SAS client are you using?&amp;nbsp; (Display Manager, EG, SAS Studio)?&amp;nbsp; EG (and I suspect SAS Studio) end with submitting a magic string that "fixes" unmatched quotes and similar problems, but in my experience this sometimes makes the problem harder to detect.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Your code itself looks fine.&amp;nbsp; Below I added a step to make some sample data, and commented out the ODS HTML CLOSE inside the macro.&amp;nbsp; It runs fine for me; I get two plots.&amp;nbsp; I would try starting a new session, and submitting exactly this code, to see&amp;nbsp;if you get a result.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;data input;
  do snp=1 to 3;
    do cholinevar=1 to 5;
      cholinevar_4=cholinevar;
      response=ranuni(0)*100;
      output;
    end;
  end;
run;

%Macro plots(data, cholinevar, response, SNP, title);

PROC sGPLOT DATA = &amp;amp;data noautolegend;
vbar &amp;amp;cholinevar._4 / response = &amp;amp;response stat = mean group = &amp;amp;SNP groupdisplay = cluster limitstat = stderr ;
title "&amp;amp;title";
run;
PROC sGPLOT DATA = &amp;amp;data noautolegend;
reg x = &amp;amp;cholinevar y = &amp;amp;response /group = &amp;amp;SNP clm ;
title "&amp;amp;title";
run;
***ods html close;
%mend plots;

%plots(input, cholinevar, Response, SNP, Title);&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you don't get any result from that, I would try a new session, and see if you can get anything from proc print data=sashelp.class;run;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 21 Jul 2017 02:04:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Problem-with-Proc-SGplot-in-a-macro/m-p/377976#M13047</guid>
      <dc:creator>Quentin</dc:creator>
      <dc:date>2017-07-21T02:04:13Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with Proc SGplot in a macro</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Problem-with-Proc-SGplot-in-a-macro/m-p/378123#M13066</link>
      <description>&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/19879"&gt;@Quentin&lt;/a&gt;&lt;BR /&gt;Yeah... it's like trying to run the macro "plots" breaks my SAS because I don't get anything from proc print data = sashelp.class&lt;BR /&gt;&lt;BR /&gt;Everything will work before I try to create the plots macro. For any code before this step, the only thing I did was reference the libraries. As for my SAS client I'm not exactly sure because the name of the program is literally just "SAS for Window". SAS 9.4 TS Level 1M3.&lt;BR /&gt;&lt;BR /&gt;Also @ballard yes I know they aren't exactly the same thing but I meant even if I used the same "X" and "Y" SAS just isn't cooperating with the "plots" macro I generate. &lt;BR /&gt;&lt;BR /&gt;Oh also an additional detail seems like the Error(upon closing SAS) that I get says...&lt;BR /&gt;&lt;BR /&gt;"ERROR: Macro parameter contains syntax error"</description>
      <pubDate>Fri, 21 Jul 2017 13:18:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Problem-with-Proc-SGplot-in-a-macro/m-p/378123#M13066</guid>
      <dc:creator>Leon27607</dc:creator>
      <dc:date>2017-07-21T13:18:04Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with Proc SGplot in a macro</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Problem-with-Proc-SGplot-in-a-macro/m-p/378129#M13067</link>
      <description>&lt;P&gt;Let's have you run it on data that we can all access. Please exist SAS, then start SAS again and run the following program:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%Macro plots(data, cholinevar, response, SNP, title);

PROC sGPLOT DATA = &amp;amp;data noautolegend;
vbar &amp;amp;cholinevar. / response = &amp;amp;response stat = mean group = &amp;amp;SNP groupdisplay = cluster limitstat = stderr ;
title "&amp;amp;title";
run;

PROC sGPLOT DATA = &amp;amp;data noautolegend;
reg x = &amp;amp;cholinevar y = &amp;amp;response /group = &amp;amp;SNP clm ;
title "&amp;amp;title";
run;
%mend plots;

%plots(sashelp.class, age, weight, sex, My Plot Title);&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 21 Jul 2017 13:33:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Problem-with-Proc-SGplot-in-a-macro/m-p/378129#M13067</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2017-07-21T13:33:58Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with Proc SGplot in a macro</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Problem-with-Proc-SGplot-in-a-macro/m-p/378186#M13068</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13684"&gt;@Rick_SAS&lt;/a&gt;&lt;BR /&gt;The code you posted did work.... I don't know what SAS is doing but trying to use the plots macro like this DOESN'T work.&lt;BR /&gt;%plots(data2.inputdataremoved, choline_f2a, WRPM_ss, snp180, rs8016556_C(FDR=0.0403323974); although If i replace the macro variables with these exact names it works outside the macro....&lt;/P&gt;</description>
      <pubDate>Fri, 21 Jul 2017 15:12:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Problem-with-Proc-SGplot-in-a-macro/m-p/378186#M13068</guid>
      <dc:creator>Leon27607</dc:creator>
      <dc:date>2017-07-21T15:12:13Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with Proc SGplot in a macro</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Problem-with-Proc-SGplot-in-a-macro/m-p/378192#M13069</link>
      <description>&lt;P&gt;Here is a macro call that does what you describe. If it works for you, then&amp;nbsp;I suggest you check your data.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%Macro plots(data, cholinevar, response, SNP, title);

PROC sGPLOT DATA = &amp;amp;data noautolegend;
vbar &amp;amp;cholinevar._4 / response = &amp;amp;response stat = mean group = &amp;amp;SNP groupdisplay = cluster limitstat = stderr ;
title "&amp;amp;title";
run;
PROC sGPLOT DATA = &amp;amp;data noautolegend;
reg x = &amp;amp;cholinevar y = &amp;amp;response /group = &amp;amp;SNP clm ;
title "&amp;amp;title";
run;

%mend plots;

data class;
set sashelp.class;
age_4 = age;
run;

%plots(class, age, weight, sex, My Plot Title);&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 21 Jul 2017 15:14:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Problem-with-Proc-SGplot-in-a-macro/m-p/378192#M13069</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2017-07-21T15:14:58Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with Proc SGplot in a macro</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Problem-with-Proc-SGplot-in-a-macro/m-p/378193#M13070</link>
      <description>&lt;P&gt;By the way, the code you posted has a syntax error:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%plots(data2.inputdataremoved, choline_f2a, WRPM_ss, snp180, rs8016556_C(FDR=0.0403323974); &lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Put an extra closing parenthesis before the semicolon.&lt;/P&gt;</description>
      <pubDate>Fri, 21 Jul 2017 15:18:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Problem-with-Proc-SGplot-in-a-macro/m-p/378193#M13070</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2017-07-21T15:18:03Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with Proc SGplot in a macro</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Problem-with-Proc-SGplot-in-a-macro/m-p/378198#M13071</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/9021"&gt;@Leon27607&lt;/a&gt; wrote:&lt;BR /&gt;
&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13684"&gt;@Rick_SAS&lt;/a&gt;&lt;BR /&gt;The code you posted did work.... I don't know what SAS is doing but trying to use the plots macro like this DOESN'T work.&lt;BR /&gt;%plots(data2.inputdataremoved, choline_f2a, WRPM_ss, snp180, rs8016556_C(FDR=0.0403323974); although If i replace the macro variables with these exact names it works outside the macro....&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;And there's the cause of the Macro parameter error that you saw. Per &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13684"&gt;@Rick_SAS&lt;/a&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 21 Jul 2017 15:26:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Problem-with-Proc-SGplot-in-a-macro/m-p/378198#M13071</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2017-07-21T15:26:18Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with Proc SGplot in a macro</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Problem-with-Proc-SGplot-in-a-macro/m-p/378203#M13072</link>
      <description>OMG, I figured out the issue, I was missing a ")" at the end of my macro calling.</description>
      <pubDate>Fri, 21 Jul 2017 15:34:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Problem-with-Proc-SGplot-in-a-macro/m-p/378203#M13072</guid>
      <dc:creator>Leon27607</dc:creator>
      <dc:date>2017-07-21T15:34:46Z</dc:date>
    </item>
  </channel>
</rss>

