<?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: conditional execute of legend within a gplot in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/conditional-execute-of-legend-within-a-gplot/m-p/362405#M85613</link>
    <description>&lt;P&gt;You need to use the option minoperator along with the mindelimiter. Please check below code for example&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;options minoperator mlogic;
%macro test(value) / mindelimiter=',';

   %if &amp;amp;value in 1,2,3,4,5,6 %then 
       %put Value found within list.;
   %else %put Value not in list.;

%mend;

%test(3)&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 29 May 2017 02:16:53 GMT</pubDate>
    <dc:creator>Jagadishkatam</dc:creator>
    <dc:date>2017-05-29T02:16:53Z</dc:date>
    <item>
      <title>conditional execute of legend within a gplot</title>
      <link>https://communities.sas.com/t5/SAS-Programming/conditional-execute-of-legend-within-a-gplot/m-p/362298#M85576</link>
      <description>&lt;P&gt;&lt;FONT face="SAS Monospace" size="2"&gt;In a gplot within a macro, I'm trying to force the placement of the legend in the upper right hand portion of a graph, if a couple of the inputs meet certain criteria. In the first line I've&amp;nbsp; written the statement to place the legent in the lower left hand portion and&amp;nbsp;want to override that statement when the conditions are met&amp;nbsp;and the %if statement is true.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="SAS Monospace" size="2"&gt;One problem I see right off the bat:&amp;nbsp;&amp;nbsp;I don't know&amp;nbsp;the syntax of the in statement in a macro.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="SAS Monospace" size="2"&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="SAS Monospace" size="2"&gt;legend1 frame shape=symbol(&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" face="SAS Monospace" size="2"&gt;4&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="SAS Monospace" size="2"&gt;,&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" face="SAS Monospace" size="2"&gt;2&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="SAS Monospace" size="2"&gt;) position=(bottom left inside) mode=reserve label=(&lt;/FONT&gt;&lt;FONT color="#800080" face="SAS Monospace" size="2"&gt;''&lt;/FONT&gt;&lt;FONT face="SAS Monospace" size="2"&gt;) across=&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" face="SAS Monospace" size="2"&gt;1&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="SAS Monospace" size="2"&gt; down=&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" face="SAS Monospace" size="2"&gt;5&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="SAS Monospace" size="2"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="SAS Monospace" size="2"&gt;%if&lt;/FONT&gt;&lt;FONT face="SAS Monospace" size="2"&gt; &amp;amp;&amp;amp;&amp;amp;invar&amp;amp;&lt;/FONT&gt;&lt;FONT color="#008080" face="SAS Monospace" size="2"&gt;k.&lt;STRONG&gt;.&lt;/STRONG&gt;&lt;/FONT&gt;&lt;FONT face="SAS Monospace" size="2"&gt; = &lt;/FONT&gt;&lt;FONT color="#800080" face="SAS Monospace" size="2"&gt;fico&lt;/FONT&gt;&lt;FONT face="SAS Monospace" size="2"&gt; and &amp;amp;&amp;amp;&amp;amp;gvar&amp;amp;&lt;/FONT&gt;&lt;FONT color="#008080" face="SAS Monospace" size="2"&gt;i.&lt;STRONG&gt;.&lt;/STRONG&gt;&lt;/FONT&gt;&lt;FONT face="SAS Monospace" size="2"&gt; in (&lt;/FONT&gt;&lt;FONT color="#800080" face="SAS Monospace" size="2"&gt;exp_fix_P_Pay&lt;/FONT&gt;&lt;FONT face="SAS Monospace" size="2"&gt; , &lt;/FONT&gt;&lt;FONT color="#800080" face="SAS Monospace" size="2"&gt;exp_M_EL&lt;/FONT&gt;&lt;FONT face="SAS Monospace" size="2"&gt;) &lt;/FONT&gt;&lt;FONT color="#0000ff" face="SAS Monospace" size="2"&gt;%then&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="SAS Monospace" size="2"&gt;legend1 frame shape=symbol(&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" face="SAS Monospace" size="2"&gt;4&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="SAS Monospace" size="2"&gt;,&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" face="SAS Monospace" size="2"&gt;2&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="SAS Monospace" size="2"&gt;) position=(top right inside) mode=reserve label=(&lt;/FONT&gt;&lt;FONT color="#800080" face="SAS Monospace" size="2"&gt;''&lt;/FONT&gt;&lt;FONT face="SAS Monospace" size="2"&gt;) across=&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" face="SAS Monospace" size="2"&gt;1&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="SAS Monospace" size="2"&gt; down=&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" face="SAS Monospace" size="2"&gt;5&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="SAS Monospace" size="2"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="SAS Monospace" size="2"&gt;Simplifying the condition to &lt;FONT color="#0000ff" face="SAS Monospace" size="2"&gt;%if&lt;/FONT&gt; &amp;amp;&amp;amp;&amp;amp;invar&amp;amp;&lt;FONT color="#008080" face="SAS Monospace" size="2"&gt;k.&lt;STRONG&gt;.&lt;/STRONG&gt;&lt;/FONT&gt; = &lt;FONT color="#800080" face="SAS Monospace" size="2"&gt;fico&lt;/FONT&gt; somehow&amp;nbsp;messed the subsequent plot statements.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="SAS Monospace" size="2"&gt;Any suggestions&amp;nbsp;as to how to set up the condition are welcome.&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="SAS Monospace" size="2"&gt;Thank you -- George&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 28 May 2017 15:20:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/conditional-execute-of-legend-within-a-gplot/m-p/362298#M85576</guid>
      <dc:creator>grezek</dc:creator>
      <dc:date>2017-05-28T15:20:17Z</dc:date>
    </item>
    <item>
      <title>Re: conditional execute of legend within a gplot</title>
      <link>https://communities.sas.com/t5/SAS-Programming/conditional-execute-of-legend-within-a-gplot/m-p/362405#M85613</link>
      <description>&lt;P&gt;You need to use the option minoperator along with the mindelimiter. Please check below code for example&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;options minoperator mlogic;
%macro test(value) / mindelimiter=',';

   %if &amp;amp;value in 1,2,3,4,5,6 %then 
       %put Value found within list.;
   %else %put Value not in list.;

%mend;

%test(3)&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 29 May 2017 02:16:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/conditional-execute-of-legend-within-a-gplot/m-p/362405#M85613</guid>
      <dc:creator>Jagadishkatam</dc:creator>
      <dc:date>2017-05-29T02:16:53Z</dc:date>
    </item>
    <item>
      <title>Re: conditional execute of legend within a gplot</title>
      <link>https://communities.sas.com/t5/SAS-Programming/conditional-execute-of-legend-within-a-gplot/m-p/362676#M85698</link>
      <description>&lt;P&gt;You gave me what I needed to know.&amp;nbsp; I don't remember seeing "minoperator" nor "mindelimiter" and doubt that I would have found that on my own.&amp;nbsp; Thank you very much for your help! -- George&lt;/P&gt;</description>
      <pubDate>Tue, 30 May 2017 11:34:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/conditional-execute-of-legend-within-a-gplot/m-p/362676#M85698</guid>
      <dc:creator>grezek</dc:creator>
      <dc:date>2017-05-30T11:34:21Z</dc:date>
    </item>
  </channel>
</rss>

