<?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: How to reference a macro variable in ODS RTF TEXT= ? in ODS and Base Reporting</title>
    <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/How-to-reference-a-macro-variable-in-ODS-RTF-TEXT/m-p/89673#M9292</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I see why. Font name needs to be enclosed in single quotes when the overall text enclosed in double quotes.&lt;/P&gt;&lt;P&gt;Please see the example below.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;%LET DISTNAME = Example;&lt;/P&gt;&lt;P&gt;ods escapechar='^';&lt;/P&gt;&lt;P&gt;TITLE1 "&amp;amp;DISTNAME.";&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ods pdf file='d:\temp\test.pdf';&lt;/P&gt;&lt;P&gt;proc print data=sashelp.class;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ODS PDF TEXT = "^S={just=center font=('Times New Roman',14PT,Bold)} Report produced for &amp;amp;DISTNAME. ISD";&lt;/P&gt;&lt;P&gt;%* ODS PDF TEXT = "^S={just=center font=(""Times New Roman"",14PT,Bold)} Report produced for &amp;amp;DISTNAME. ISD"; //* This would work, too */&lt;/P&gt;&lt;P&gt;ods pdf close;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 22 Jun 2012 04:30:29 GMT</pubDate>
    <dc:creator>Alpay</dc:creator>
    <dc:date>2012-06-22T04:30:29Z</dc:date>
    <item>
      <title>How to reference a macro variable in ODS RTF TEXT= ?</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/How-to-reference-a-macro-variable-in-ODS-RTF-TEXT/m-p/89670#M9289</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a program that I need to run multiple times to produce reports for multiple school districts (using ODS PDF). I use the following to title my pages.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Before running my program,&lt;/P&gt;&lt;P&gt;%LET DISTNAME = Example;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Within my program,&lt;/P&gt;&lt;P&gt;TITLE1 "&amp;amp;DISTNAME.".;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This works fine for me. I would also like to add some descriptive text using ODS PDF TEXT= and mention the district name in the text. How do I do that?&lt;/P&gt;&lt;P&gt;ODS PDF TEXT = '^S={just=center font=("Times New Roman",14PT,Bold)} Report produced for &amp;amp;DISTNAME. ISD';&lt;/P&gt;&lt;P&gt;is not working.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Jun 2012 20:17:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/How-to-reference-a-macro-variable-in-ODS-RTF-TEXT/m-p/89670#M9289</guid>
      <dc:creator>AshP</dc:creator>
      <dc:date>2012-06-21T20:17:46Z</dc:date>
    </item>
    <item>
      <title>Re: How to reference a macro variable in ODS RTF TEXT= ?</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/How-to-reference-a-macro-variable-in-ODS-RTF-TEXT/m-p/89671#M9290</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you try enclosing in double quotes instead of single?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ODS PDF TEXT = "^S={just=center font=("Times New Roman",14PT,Bold)} Report produced for &amp;amp;DISTNAME. ISD";&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Jun 2012 20:46:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/How-to-reference-a-macro-variable-in-ODS-RTF-TEXT/m-p/89671#M9290</guid>
      <dc:creator>Alpay</dc:creator>
      <dc:date>2012-06-21T20:46:35Z</dc:date>
    </item>
    <item>
      <title>Re: How to reference a macro variable in ODS RTF TEXT= ?</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/How-to-reference-a-macro-variable-in-ODS-RTF-TEXT/m-p/89672#M9291</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No, that didn't work either ...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Jun 2012 21:40:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/How-to-reference-a-macro-variable-in-ODS-RTF-TEXT/m-p/89672#M9291</guid>
      <dc:creator>AshP</dc:creator>
      <dc:date>2012-06-21T21:40:45Z</dc:date>
    </item>
    <item>
      <title>Re: How to reference a macro variable in ODS RTF TEXT= ?</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/How-to-reference-a-macro-variable-in-ODS-RTF-TEXT/m-p/89673#M9292</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I see why. Font name needs to be enclosed in single quotes when the overall text enclosed in double quotes.&lt;/P&gt;&lt;P&gt;Please see the example below.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;%LET DISTNAME = Example;&lt;/P&gt;&lt;P&gt;ods escapechar='^';&lt;/P&gt;&lt;P&gt;TITLE1 "&amp;amp;DISTNAME.";&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ods pdf file='d:\temp\test.pdf';&lt;/P&gt;&lt;P&gt;proc print data=sashelp.class;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ODS PDF TEXT = "^S={just=center font=('Times New Roman',14PT,Bold)} Report produced for &amp;amp;DISTNAME. ISD";&lt;/P&gt;&lt;P&gt;%* ODS PDF TEXT = "^S={just=center font=(""Times New Roman"",14PT,Bold)} Report produced for &amp;amp;DISTNAME. ISD"; //* This would work, too */&lt;/P&gt;&lt;P&gt;ods pdf close;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Jun 2012 04:30:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/How-to-reference-a-macro-variable-in-ODS-RTF-TEXT/m-p/89673#M9292</guid>
      <dc:creator>Alpay</dc:creator>
      <dc:date>2012-06-22T04:30:29Z</dc:date>
    </item>
    <item>
      <title>Re: How to reference a macro variable in ODS RTF TEXT= ?</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/How-to-reference-a-macro-variable-in-ODS-RTF-TEXT/m-p/89674#M9293</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Alpay, that worked, thank you!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Jun 2012 14:24:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/How-to-reference-a-macro-variable-in-ODS-RTF-TEXT/m-p/89674#M9293</guid>
      <dc:creator>AshP</dc:creator>
      <dc:date>2012-06-22T14:24:17Z</dc:date>
    </item>
  </channel>
</rss>

