<?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: ODS TAGSETS.EXCELXP is not giving the desired output while printing character variable in ODS and Base Reporting</title>
    <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-TAGSETS-EXCELXP-is-not-giving-the-desired-output-while/m-p/321553#M17622</link>
    <description>Thank you so much Cynthia.. Really appreciate your help on this. I have tried, and it worked for me..&lt;BR /&gt;One last help, is there any format available in removing the dot in 2.% and give me 2%. This should solve my entire problem.&lt;BR /&gt;Thanks again!</description>
    <pubDate>Thu, 29 Dec 2016 07:32:09 GMT</pubDate>
    <dc:creator>sunnyvizag</dc:creator>
    <dc:date>2016-12-29T07:32:09Z</dc:date>
    <item>
      <title>ODS TAGSETS.EXCELXP is not giving the desired output while printing character variable</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-TAGSETS-EXCELXP-is-not-giving-the-desired-output-while/m-p/321467#M17615</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I am facing challenge in getting the desired output while exporting character variable using ODS tagsets.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is the code used:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;DATA TEST;&lt;/P&gt;&lt;P&gt;INPUT PERC $10;&lt;/P&gt;&lt;P&gt;CARDS;&lt;/P&gt;&lt;P&gt;2%&lt;/P&gt;&lt;P&gt;&amp;lt;0.1%&lt;/P&gt;&lt;P&gt;0.035%&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;P&gt;RUN;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;ODS _ALL_ CLOSE;&lt;/P&gt;&lt;P&gt;ODS TAGSETS.EXCELXP FILE="TEST.XLS";&lt;/P&gt;&lt;P&gt;PROC PRINT DATA = TEST;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; VAR PERC / STYLE= {TAGATTR= 'FORMAT:@'};&lt;/P&gt;&lt;P&gt;RUN;&lt;/P&gt;&lt;P&gt;ODS TAGSETS.EXCELXP CLOSE;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;SAS ODS Output in Excel:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;PERC&lt;/P&gt;&lt;P&gt;----&lt;/P&gt;&lt;P&gt;0.02%&lt;/P&gt;&lt;P&gt;&amp;lt;0.1%&lt;/P&gt;&lt;P&gt;0.00035%&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would need the output as below (Same as Dataset):&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;PERC&lt;/P&gt;&lt;P&gt;----&lt;/P&gt;&lt;P&gt;2%&lt;/P&gt;&lt;P&gt;&amp;lt;0.1%&lt;/P&gt;&lt;P&gt;0.035%&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Why would ODS Excel output give 0.02% instead of 2% while it is stored as a character variable in dataset.&lt;/P&gt;&lt;P&gt;Can anyone help me in getting the same output in excel as in dataset?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance!&lt;/P&gt;</description>
      <pubDate>Wed, 28 Dec 2016 19:37:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-TAGSETS-EXCELXP-is-not-giving-the-desired-output-while/m-p/321467#M17615</guid>
      <dc:creator>sunnyvizag</dc:creator>
      <dc:date>2016-12-28T19:37:18Z</dc:date>
    </item>
    <item>
      <title>Re: ODS TAGSETS.EXCELXP is not giving the desired output while printing character variable</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-TAGSETS-EXCELXP-is-not-giving-the-desired-output-while/m-p/321474#M17616</link>
      <description>&lt;P&gt;Hi:&lt;BR /&gt; Microsoft has defaults and one of those defaults, typically, is to ignore some of the information you send it.&lt;BR /&gt;&lt;BR /&gt; My recommendation is that, instead of formatting the field as text, you send Microsoft a Microsoft format using the correct style(data) syntax with PROC PRINT:&lt;BR /&gt; var PERC / STYLE(data)={TAGATTR='FORMAT:##0.###%'};&lt;BR /&gt;&lt;BR /&gt; When I tried it, the numeric format worked better than using the @ to format as text.&lt;BR /&gt;cynthia&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/6514i93DDC460EB6CE0AF/image-size/original?v=v2&amp;amp;px=-1" alt="tagsets_format.png" title="tagsets_format.png" border="0" /&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 28 Dec 2016 20:26:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-TAGSETS-EXCELXP-is-not-giving-the-desired-output-while/m-p/321474#M17616</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2016-12-28T20:26:22Z</dc:date>
    </item>
    <item>
      <title>Re: ODS TAGSETS.EXCELXP is not giving the desired output while printing character variable</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-TAGSETS-EXCELXP-is-not-giving-the-desired-output-while/m-p/321547#M17620</link>
      <description>Thanks much for your response.. will try with your solution today and get back to you.. thanks again..</description>
      <pubDate>Thu, 29 Dec 2016 05:38:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-TAGSETS-EXCELXP-is-not-giving-the-desired-output-while/m-p/321547#M17620</guid>
      <dc:creator>sunnyvizag</dc:creator>
      <dc:date>2016-12-29T05:38:27Z</dc:date>
    </item>
    <item>
      <title>Re: ODS TAGSETS.EXCELXP is not giving the desired output while printing character variable</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-TAGSETS-EXCELXP-is-not-giving-the-desired-output-while/m-p/321553#M17622</link>
      <description>Thank you so much Cynthia.. Really appreciate your help on this. I have tried, and it worked for me..&lt;BR /&gt;One last help, is there any format available in removing the dot in 2.% and give me 2%. This should solve my entire problem.&lt;BR /&gt;Thanks again!</description>
      <pubDate>Thu, 29 Dec 2016 07:32:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-TAGSETS-EXCELXP-is-not-giving-the-desired-output-while/m-p/321553#M17622</guid>
      <dc:creator>sunnyvizag</dc:creator>
      <dc:date>2016-12-29T07:32:09Z</dc:date>
    </item>
  </channel>
</rss>

