<?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: Changing a title with a logical condition in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Changing-a-title-with-a-logical-condition/m-p/421163#M103610</link>
    <description>&lt;P&gt;what kind of logical operator?&lt;/P&gt;</description>
    <pubDate>Thu, 14 Dec 2017 13:15:17 GMT</pubDate>
    <dc:creator>PeterClemmensen</dc:creator>
    <dc:date>2017-12-14T13:15:17Z</dc:date>
    <item>
      <title>Changing a title with a logical condition</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Changing-a-title-with-a-logical-condition/m-p/421160#M103608</link>
      <description>&lt;P&gt;Dear&amp;nbsp; all, I was wondering whether it was possible to use a logical operator to change the title of a plot in a proc gplot?&lt;/P&gt;</description>
      <pubDate>Thu, 14 Dec 2017 13:11:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Changing-a-title-with-a-logical-condition/m-p/421160#M103608</guid>
      <dc:creator>teli4a</dc:creator>
      <dc:date>2017-12-14T13:11:14Z</dc:date>
    </item>
    <item>
      <title>Re: Changing a title with a logical condition</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Changing-a-title-with-a-logical-condition/m-p/421163#M103610</link>
      <description>&lt;P&gt;what kind of logical operator?&lt;/P&gt;</description>
      <pubDate>Thu, 14 Dec 2017 13:15:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Changing-a-title-with-a-logical-condition/m-p/421163#M103610</guid>
      <dc:creator>PeterClemmensen</dc:creator>
      <dc:date>2017-12-14T13:15:17Z</dc:date>
    </item>
    <item>
      <title>Re: Changing a title with a logical condition</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Changing-a-title-with-a-logical-condition/m-p/421164#M103611</link>
      <description>&lt;P&gt;For example:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;if (condition=true) then title "something";&lt;/P&gt;</description>
      <pubDate>Thu, 14 Dec 2017 13:26:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Changing-a-title-with-a-logical-condition/m-p/421164#M103611</guid>
      <dc:creator>teli4a</dc:creator>
      <dc:date>2017-12-14T13:26:06Z</dc:date>
    </item>
    <item>
      <title>Re: Changing a title with a logical condition</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Changing-a-title-with-a-logical-condition/m-p/421169#M103612</link>
      <description>&lt;P&gt;You should make a little example of the code you want to run.&amp;nbsp; (e.g. the SGPlot step with some sample data, the condition you want to evaluate, the title statement you want to generate).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Assuming you want to conditionally generate a title statement, that usually means using the macro language, e.g.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%macro ... ;

  %if &amp;amp;condition %then %do;
    title2 "My Title"; 
  %end;

%mend;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;But there are other ways to dynamically generate titles, e.g. in GTL.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 14 Dec 2017 14:01:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Changing-a-title-with-a-logical-condition/m-p/421169#M103612</guid>
      <dc:creator>Quentin</dc:creator>
      <dc:date>2017-12-14T14:01:11Z</dc:date>
    </item>
    <item>
      <title>Re: Changing a title with a logical condition</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Changing-a-title-with-a-logical-condition/m-p/421183#M103615</link>
      <description>&lt;P&gt;If you want the simplest answer, stop using a graphing system that is well out of date.&amp;nbsp; Read up on proc template and the Graph Template language.&amp;nbsp; You can pass in the tile as a parameter for instance.&amp;nbsp; There is a great blog here:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://blogs.sas.com/content/graphicallyspeaking/" target="_blank"&gt;https://blogs.sas.com/content/graphicallyspeaking/&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Which has all examples of all types of graphs with loads of code examples.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 14 Dec 2017 14:31:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Changing-a-title-with-a-logical-condition/m-p/421183#M103615</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2017-12-14T14:31:46Z</dc:date>
    </item>
    <item>
      <title>Re: Changing a title with a logical condition</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Changing-a-title-with-a-logical-condition/m-p/421205#M103623</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/179077"&gt;@teli4a&lt;/a&gt; wrote:&lt;BR /&gt;
&lt;P&gt;For example:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;if (condition=true) then title "something";&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;What sets the value of the condition? A manual entry (you for instance), the result of a procedure, a value in a data set?&lt;/P&gt;
&lt;P&gt;Can you provide examples of the conditions you want to use. Some may be easier than others. Hint: special characters especially % &amp;amp; ( ) comma may require more coding.&lt;/P&gt;
&lt;P&gt;And can you provide some examples of the condition and what you want the title(s) to be.&lt;/P&gt;</description>
      <pubDate>Thu, 14 Dec 2017 15:29:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Changing-a-title-with-a-logical-condition/m-p/421205#M103623</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2017-12-14T15:29:21Z</dc:date>
    </item>
  </channel>
</rss>

