<?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: Avoid Scientific Notation when creating XLS in ODS and Base Reporting</title>
    <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Avoid-Scientific-Notation-when-creating-XLS/m-p/224772#M14299</link>
    <description>Balladrw,&lt;BR /&gt;&lt;BR /&gt;tagattr works. Thank you for your help!&lt;BR /&gt;Asim</description>
    <pubDate>Wed, 09 Sep 2015 15:47:24 GMT</pubDate>
    <dc:creator>asimraja</dc:creator>
    <dc:date>2015-09-09T15:47:24Z</dc:date>
    <item>
      <title>Avoid Scientific Notation when creating XLS</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Avoid-Scientific-Notation-when-creating-XLS/m-p/224537#M14292</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm using the following code to create an XML based Excel file. One of the fields in the "oas_calc_RDA" dataset is 9 character field containing CUSIPs. I am assigning them a format $9. before creating file.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, when I open this file in Excel, some of the CUSIPs are incorrectly interpreted as scientific notation. Is there a work-around to preserve the character format when this file is opened in Excel?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for your help!&lt;/P&gt;&lt;P&gt;Asim&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;ods tagsets.excelxp file="&amp;amp;output_dir./Metrics_&amp;amp;run_id..xls" style=normal;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ods tagsets.excelxp options(sheet_name="Total");&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;PROC PRINT DATA=oas_calc_RDA noobs;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;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;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 09 Sep 2015 00:13:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Avoid-Scientific-Notation-when-creating-XLS/m-p/224537#M14292</guid>
      <dc:creator>asimraja</dc:creator>
      <dc:date>2015-09-09T00:13:10Z</dc:date>
    </item>
    <item>
      <title>Re: Avoid Scientific Notation when creating XLS</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Avoid-Scientific-Notation-when-creating-XLS/m-p/224544#M14293</link>
      <description>&lt;P&gt;we could preserve the data format in excel file, by TAGATTR clause&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is the code you could try&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ods tagsets.excelxp file="&amp;amp;output_dir./Metrics_&amp;amp;run_id..xls" style=normal;
    ods tagsets.excelxp options(sheet_name="Total");
    PROC PRINT DATA=oas_calc_RDA noobs;
    var &amp;lt;variable names separated by space&amp;gt;;
    var &amp;lt;variable for which the format has to be preserved&amp;gt; / style={TAGATTR='format:text'};
    RUN;
ods tagsets.excelxp close;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please try and let me know if it helped.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Jag&lt;/P&gt;</description>
      <pubDate>Wed, 09 Sep 2015 01:07:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Avoid-Scientific-Notation-when-creating-XLS/m-p/224544#M14293</guid>
      <dc:creator>Jagadishkatam</dc:creator>
      <dc:date>2015-09-09T01:07:19Z</dc:date>
    </item>
    <item>
      <title>Re: Avoid Scientific Notation when creating XLS</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Avoid-Scientific-Notation-when-creating-XLS/m-p/224764#M14297</link>
      <description>&lt;P&gt;You may also have to use a tagattr to force the result to be considered text. I suspect that if you open your "xls" file, which is XML, in a text editor you will find that the property for that field is being set to numeric.&lt;/P&gt;</description>
      <pubDate>Wed, 09 Sep 2015 15:24:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Avoid-Scientific-Notation-when-creating-XLS/m-p/224764#M14297</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2015-09-09T15:24:49Z</dc:date>
    </item>
    <item>
      <title>Re: Avoid Scientific Notation when creating XLS</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Avoid-Scientific-Notation-when-creating-XLS/m-p/224771#M14298</link>
      <description>Jagadishkatam,&lt;BR /&gt;&lt;BR /&gt;Thank you for the reply! It worked. &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;Asim</description>
      <pubDate>Wed, 09 Sep 2015 15:46:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Avoid-Scientific-Notation-when-creating-XLS/m-p/224771#M14298</guid>
      <dc:creator>asimraja</dc:creator>
      <dc:date>2015-09-09T15:46:51Z</dc:date>
    </item>
    <item>
      <title>Re: Avoid Scientific Notation when creating XLS</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Avoid-Scientific-Notation-when-creating-XLS/m-p/224772#M14299</link>
      <description>Balladrw,&lt;BR /&gt;&lt;BR /&gt;tagattr works. Thank you for your help!&lt;BR /&gt;Asim</description>
      <pubDate>Wed, 09 Sep 2015 15:47:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Avoid-Scientific-Notation-when-creating-XLS/m-p/224772#M14299</guid>
      <dc:creator>asimraja</dc:creator>
      <dc:date>2015-09-09T15:47:24Z</dc:date>
    </item>
  </channel>
</rss>

