<?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: Tagsets.excelxp  Question in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Tagsets-excelxp-Question/m-p/82655#M256746</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi:&lt;/P&gt;&lt;P&gt;&amp;nbsp; Does the FILE= option reference to &amp;amp;YEAR work? I would expect that it works OK. You can figure this out, if you ask yourself, what is the difference betwen the specification for FILE= and the reference for SHEET_NAME=?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; One of the first rules of macro variable reference is that &amp;amp;MACVAR references will NOT resolve if enclosed in SINGLE quotes. Your suboption value for SHEET_NAME&amp;nbsp; could use DOUBLE quotes (like your FILE=).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; Give it a try.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;cynthia&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 27 Nov 2012 22:22:01 GMT</pubDate>
    <dc:creator>Cynthia_sas</dc:creator>
    <dc:date>2012-11-27T22:22:01Z</dc:date>
    <item>
      <title>Tagsets.excelxp  Question</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Tagsets-excelxp-Question/m-p/82654#M256745</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello everyone,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am using tagsets.excelxp to push a dataset from Unix to Excel.&amp;nbsp; I am trying to use a macro for the 'sheet_name' within the options as shown below.&amp;nbsp; The macro variable 'year' has the value of 2012 and it works everywhere else.&amp;nbsp; The proc report and the rest of the code works too.&amp;nbsp; The only issue is the sheet name is showing up in the output Excel as "&amp;amp;year" instead of the value it should be (2012).&amp;nbsp; Does anyone have any suggestions on how to use the macro variable on the 'sheet_name'?&amp;nbsp; I really appreciate any input you may have.&amp;nbsp; Thank you &lt;img id="smileyhappy" class="emoticon emoticon-smileyhappy" src="https://communities.sas.com/i/smilies/16x16_smiley-happy.png" alt="Smiley Happy" title="Smiley Happy" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ods listing close;&lt;/P&gt;&lt;P&gt;ods tagsets.excelxp file = "&amp;amp;work_path.ytd_&amp;amp;year.xls"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; options(embedded_titles='No'&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; sheet_interval= 'none'&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;STRONG&gt;&amp;nbsp; sheet_name='&amp;amp;year'&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; gridlines='Yes'&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; wraptex='Off'&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; suppress_bylines = 'yes'&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; )&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; style=sansprinter;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc report data = ******&lt;/P&gt;&lt;P&gt;******&lt;/P&gt;&lt;P&gt;ods tagsets.excelxp close;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Nov 2012 21:59:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Tagsets-excelxp-Question/m-p/82654#M256745</guid>
      <dc:creator>KevinC_</dc:creator>
      <dc:date>2012-11-27T21:59:44Z</dc:date>
    </item>
    <item>
      <title>Re: Tagsets.excelxp  Question</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Tagsets-excelxp-Question/m-p/82655#M256746</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi:&lt;/P&gt;&lt;P&gt;&amp;nbsp; Does the FILE= option reference to &amp;amp;YEAR work? I would expect that it works OK. You can figure this out, if you ask yourself, what is the difference betwen the specification for FILE= and the reference for SHEET_NAME=?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; One of the first rules of macro variable reference is that &amp;amp;MACVAR references will NOT resolve if enclosed in SINGLE quotes. Your suboption value for SHEET_NAME&amp;nbsp; could use DOUBLE quotes (like your FILE=).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; Give it a try.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;cynthia&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Nov 2012 22:22:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Tagsets-excelxp-Question/m-p/82655#M256746</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2012-11-27T22:22:01Z</dc:date>
    </item>
    <item>
      <title>Re: Tagsets.excelxp  Question</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Tagsets-excelxp-Question/m-p/82656#M256747</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you Cynthia!&amp;nbsp; I changed the single quotes to double quotes and it worked!&lt;/P&gt;&lt;P&gt;I really appreciate your help! &lt;img id="smileyhappy" class="emoticon emoticon-smileyhappy" src="https://communities.sas.com/i/smilies/16x16_smiley-happy.png" alt="Smiley Happy" title="Smiley Happy" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Nov 2012 22:42:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Tagsets-excelxp-Question/m-p/82656#M256747</guid>
      <dc:creator>KevinC_</dc:creator>
      <dc:date>2012-11-27T22:42:11Z</dc:date>
    </item>
  </channel>
</rss>

