<?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: Passing a numeric variable macro to a proc print title within ODS in ODS and Base Reporting</title>
    <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Passing-a-numeric-variable-macro-to-a-proc-print-title-within/m-p/213902#M14094</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is there documentation that you can point me to on what the significance of using single vs double quotes.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 25 Jun 2015 17:14:17 GMT</pubDate>
    <dc:creator>SasGuy614</dc:creator>
    <dc:date>2015-06-25T17:14:17Z</dc:date>
    <item>
      <title>Passing a numeric variable macro to a proc print title within ODS</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Passing-a-numeric-variable-macro-to-a-proc-print-title-within/m-p/213899#M14091</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a numeric value that represents a date in a date table that I created (below). What I would like to do is pass this variable to the title option within proc print.I have pasted the code below but I can't seem to get it to work correctly. When the query is executed, I receive no errors, however the title shows the macro name and not the variable that I am trying to pass. I did some research and read about the #BYVAR #BYVAL but I don't believe these are a valid option because the variable that I am trying to pass along isn't in the dataset used for the proc print. Any help/suggestions would be appreciated.&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #339966;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #339966;"&gt;/*Date Table*/&lt;/SPAN&gt;&lt;/P&gt;&lt;TABLE border="1" class="jiveBorder" height="51" style="border: 1px solid rgb(0, 0, 0); width: 84px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;YYYYMMDD&lt;/STRONG&gt;&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;20150623&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #339966;"&gt;/*Macro for getting the most recent date in the date table*/&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;proc sql noprint; select YYYYMMDD into :Date from Datetable where row = 1;&lt;/P&gt;&lt;P&gt;%let Date = &amp;amp;Date.;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #339966;"&gt;/*Report*/&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;ods tagsets.excelxp options(sheet_interval='none' sheet_name = 'MTD' );&lt;/P&gt;&lt;P&gt;proc print&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; data = Final.MTD_&amp;amp;Date. noobs label&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; style(header)=[just=c];&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; sum&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; CHK_TTL&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; PCA&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; __FREE&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; HUN5&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; HUN25&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ESTATE_CHK&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; CHK_OTHER&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; SAV&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; MMA&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; TIME;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; var AREA / STYLE(COLUMN)=[CELLWIDTH=250];&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; var CHK_TTL / STYLE(COLUMN)=[CELLWIDTH=100];&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; var PCA / STYLE(COLUMN)=[CELLWIDTH=100];&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; var __FREE / STYLE(COLUMN)=[CELLWIDTH=100];&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; var HUN5 / STYLE(COLUMN)=[CELLWIDTH=100];&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; var HUN25 / STYLE(COLUMN)=[CELLWIDTH=100];&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; var ESTATE_CHK / STYLE(COLUMN)=[CELLWIDTH=100];&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; var CHK_OTHER / STYLE(COLUMN)=[CELLWIDTH=100];&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; var SAV / STYLE(COLUMN)=[CELLWIDTH=100];&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; var MMA / STYLE(COLUMN)=[CELLWIDTH=100];&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; var TIME / STYLE(COLUMN)=[CELLWIDTH=100];&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; label&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Area = 'Region'&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; CHK_TTL = '# of Chk. Accts'&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; __FREE = '* FREE'&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ESTATE_CHK = 'Estate Chk.'&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; CHK_OTHER = 'Chk. Other';&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; title 'MTD_AS_OF_&amp;amp;Date.';&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Jun 2015 14:50:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Passing-a-numeric-variable-macro-to-a-proc-print-title-within/m-p/213899#M14091</guid>
      <dc:creator>SasGuy614</dc:creator>
      <dc:date>2015-06-25T14:50:55Z</dc:date>
    </item>
    <item>
      <title>Re: Passing a numeric variable macro to a proc print title within ODS</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Passing-a-numeric-variable-macro-to-a-proc-print-title-within/m-p/213900#M14092</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The quotes around text involving macro variables need to be the double quote: "&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; title "MTD_AS_OF_&amp;amp;Date.";&lt;/P&gt;&lt;P&gt;should work&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Jun 2015 14:59:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Passing-a-numeric-variable-macro-to-a-proc-print-title-within/m-p/213900#M14092</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2015-06-25T14:59:34Z</dc:date>
    </item>
    <item>
      <title>Re: Passing a numeric variable macro to a proc print title within ODS</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Passing-a-numeric-variable-macro-to-a-proc-print-title-within/m-p/213901#M14093</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks a bunch, I didn't even think of that option.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Jun 2015 15:04:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Passing-a-numeric-variable-macro-to-a-proc-print-title-within/m-p/213901#M14093</guid>
      <dc:creator>SasGuy614</dc:creator>
      <dc:date>2015-06-25T15:04:17Z</dc:date>
    </item>
    <item>
      <title>Re: Passing a numeric variable macro to a proc print title within ODS</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Passing-a-numeric-variable-macro-to-a-proc-print-title-within/m-p/213902#M14094</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is there documentation that you can point me to on what the significance of using single vs double quotes.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Jun 2015 17:14:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Passing-a-numeric-variable-macro-to-a-proc-print-title-within/m-p/213902#M14094</guid>
      <dc:creator>SasGuy614</dc:creator>
      <dc:date>2015-06-25T17:14:17Z</dc:date>
    </item>
    <item>
      <title>Re: Passing a numeric variable macro to a proc print title within ODS</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Passing-a-numeric-variable-macro-to-a-proc-print-title-within/m-p/213903#M14095</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I would start with the Macro Language Reference section, Understanding and Using the Macro Facility in the online help under Base SAS.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Jun 2015 17:26:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Passing-a-numeric-variable-macro-to-a-proc-print-title-within/m-p/213903#M14095</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2015-06-25T17:26:11Z</dc:date>
    </item>
    <item>
      <title>Re: Passing a numeric variable macro to a proc print title within ODS</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Passing-a-numeric-variable-macro-to-a-proc-print-title-within/m-p/213904#M14096</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for your help again.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Jun 2015 17:30:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Passing-a-numeric-variable-macro-to-a-proc-print-title-within/m-p/213904#M14096</guid>
      <dc:creator>SasGuy614</dc:creator>
      <dc:date>2015-06-25T17:30:38Z</dc:date>
    </item>
    <item>
      <title>Re: Passing a numeric variable macro to a proc print title within ODS</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Passing-a-numeric-variable-macro-to-a-proc-print-title-within/m-p/213905#M14097</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You did get the correct answer to your question.&amp;nbsp; I noticed some code you don't really need.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The %let Date=&amp;amp;Date; isn't needed as that is what the proc sql execution just above it does.&amp;nbsp; That syntax creates the macro date with the contents of YYYYMMDD.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Jun 2015 19:55:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Passing-a-numeric-variable-macro-to-a-proc-print-title-within/m-p/213905#M14097</guid>
      <dc:creator>Hoffy</dc:creator>
      <dc:date>2015-06-25T19:55:11Z</dc:date>
    </item>
  </channel>
</rss>

