<?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 variable in title statement is not getting resolved correctly in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/macro-variable-in-title-statement-is-not-getting-resolved/m-p/952529#M372264</link>
    <description>&lt;P&gt;Suggestion: simplify your coding and your titles and make titles more readable. Titles don't need parentheses around the information, and the single-quote or double-quote around LINE is not necessary either. Use actual ENGLISH words in your titles, properly capitalized, instead of variable names like productline&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;title2 "Product Line = &amp;amp;var2., Sale = &amp;amp;var3., Price = &amp;amp;var4.";&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;BR /&gt;The whole point of a title is to convey information to an audience (who may not be computer programmers), if that audience speaks English then the title should be in English and not computerese.&lt;/P&gt;</description>
    <pubDate>Wed, 04 Dec 2024 13:14:11 GMT</pubDate>
    <dc:creator>PaigeMiller</dc:creator>
    <dc:date>2024-12-04T13:14:11Z</dc:date>
    <item>
      <title>macro variable in title statement is not getting resolved correctly</title>
      <link>https://communities.sas.com/t5/SAS-Programming/macro-variable-in-title-statement-is-not-getting-resolved/m-p/952521#M372259</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;
&lt;P&gt;I want to create a macro variable for all these title, title1 and title2 statement . &lt;BR /&gt;where &lt;STRONG&gt;price1,Line1 , 203 and 28.9&lt;/STRONG&gt; will come from separate macro variable&lt;/P&gt;
&lt;P&gt;title1 'Predicted and actual values of price1';&lt;BR /&gt;title2 '(productLine = ''Line1'',&lt;BR /&gt;sale = 203,&lt;BR /&gt;price = 28.39&lt;BR /&gt;)';&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Can anyone please help??&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 04 Dec 2024 11:37:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/macro-variable-in-title-statement-is-not-getting-resolved/m-p/952521#M372259</guid>
      <dc:creator>Aexor</dc:creator>
      <dc:date>2024-12-04T11:37:40Z</dc:date>
    </item>
    <item>
      <title>Re: macro variable in title statement is not getting resolved correctly</title>
      <link>https://communities.sas.com/t5/SAS-Programming/macro-variable-in-title-statement-is-not-getting-resolved/m-p/952528#M372263</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%let var1 = price1;
%let var2 = Line1;
%let var3 = 203;
%let var4 = 28.9;

title1 "Predicted and actual values of &amp;amp;var1.";
title2 "(productLine = '&amp;amp;var2.', sale = &amp;amp;var3., price = &amp;amp;var4.)";&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Macro variables are not resolved in single quotes; single quotes within double quotes are just text and have no effect.&lt;/P&gt;
&lt;P&gt;Always use double quotes in SAS code unless you specifically need single quotes.&lt;/P&gt;</description>
      <pubDate>Wed, 04 Dec 2024 12:55:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/macro-variable-in-title-statement-is-not-getting-resolved/m-p/952528#M372263</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2024-12-04T12:55:03Z</dc:date>
    </item>
    <item>
      <title>Re: macro variable in title statement is not getting resolved correctly</title>
      <link>https://communities.sas.com/t5/SAS-Programming/macro-variable-in-title-statement-is-not-getting-resolved/m-p/952529#M372264</link>
      <description>&lt;P&gt;Suggestion: simplify your coding and your titles and make titles more readable. Titles don't need parentheses around the information, and the single-quote or double-quote around LINE is not necessary either. Use actual ENGLISH words in your titles, properly capitalized, instead of variable names like productline&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;title2 "Product Line = &amp;amp;var2., Sale = &amp;amp;var3., Price = &amp;amp;var4.";&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;BR /&gt;The whole point of a title is to convey information to an audience (who may not be computer programmers), if that audience speaks English then the title should be in English and not computerese.&lt;/P&gt;</description>
      <pubDate>Wed, 04 Dec 2024 13:14:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/macro-variable-in-title-statement-is-not-getting-resolved/m-p/952529#M372264</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2024-12-04T13:14:11Z</dc:date>
    </item>
  </channel>
</rss>

