<?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: Field is character but shows up in Excel as scientific in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Field-is-character-but-shows-up-in-Excel-as-scientific/m-p/530273#M144987</link>
    <description>&lt;P&gt;Hi:&lt;BR /&gt;ODS does not create an XLS file. It creates an XLSX (ODS EXCEL) or an XML file (ODS TAGSETS.EXCELXP). With the value turned into a number, Excel may still not treat the number correctly.&lt;BR /&gt;&lt;BR /&gt;Typically, which ever one you use, you may have to send a Microsoft format from SAS to Excel.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="big_num_xp_xl.png" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/26591i84D3F08C97A4C320/image-size/large?v=v2&amp;amp;px=999" role="button" title="big_num_xp_xl.png" alt="big_num_xp_xl.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;Cynthia&lt;/P&gt;</description>
    <pubDate>Fri, 25 Jan 2019 23:19:46 GMT</pubDate>
    <dc:creator>Cynthia_sas</dc:creator>
    <dc:date>2019-01-25T23:19:46Z</dc:date>
    <item>
      <title>Field is character but shows up in Excel as scientific</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Field-is-character-but-shows-up-in-Excel-as-scientific/m-p/530261#M144984</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; I have a database column that is defined as&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Microsoft Sans Serif" size="2"&gt;VARCHAR&lt;/FONT&gt;&lt;FONT face="Microsoft Sans Serif" size="2"&gt;(&lt;/FONT&gt;&lt;FONT color="#ff00ff" face="Microsoft Sans Serif" size="2"&gt;21&lt;/FONT&gt;&lt;FONT face="Microsoft Sans Serif" size="2"&gt;) &lt;/FONT&gt;&lt;FONT color="#0000ff" face="Microsoft Sans Serif" size="2"&gt;CHARACTER&lt;/FONT&gt; &lt;STRONG&gt;&lt;FONT color="#0000ff" face="Microsoft Sans Serif" size="2"&gt;SET&lt;/FONT&gt;&lt;/STRONG&gt; &lt;FONT color="#800000" face="Microsoft Sans Serif" size="2"&gt;LATIN&lt;/FONT&gt; &lt;STRONG&gt;&lt;FONT color="#0000ff" face="Microsoft Sans Serif" size="2"&gt;NOT&lt;/FONT&gt;&lt;/STRONG&gt; &lt;STRONG&gt;&lt;FONT color="#0000ff" face="Microsoft Sans Serif" size="2"&gt;CASESPECIFIC&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;When I use ODS and create an xls file the field shows up a scientific numbers in Excel.&amp;nbsp; If I change the column format manually to number this solves this issue.&amp;nbsp; The thing is this file is going to be emailed from LINUX without any manual intervention.&amp;nbsp; What can I do to show the field as numeric in Excel as it seems it's translating the character field.&amp;nbsp; When I did a proc contents and proc print on the file it's defined as char(21) and the numbers appear correctly.&amp;nbsp; What do I need to do to make excel recognize this field as either the character that It is defined as or change it to number?&amp;nbsp; I am not able to attach the list file due to security regulations.&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 25 Jan 2019 22:46:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Field-is-character-but-shows-up-in-Excel-as-scientific/m-p/530261#M144984</guid>
      <dc:creator>cperrelli</dc:creator>
      <dc:date>2019-01-25T22:46:58Z</dc:date>
    </item>
    <item>
      <title>Re: Field is character but shows up in Excel as scientific</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Field-is-character-but-shows-up-in-Excel-as-scientific/m-p/530264#M144985</link>
      <description>&lt;P&gt;define the column as numeric not varchar&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;when is SAS think as SAS and leave MS behind.&amp;nbsp;&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;</description>
      <pubDate>Fri, 25 Jan 2019 22:52:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Field-is-character-but-shows-up-in-Excel-as-scientific/m-p/530264#M144985</guid>
      <dc:creator>VDD</dc:creator>
      <dc:date>2019-01-25T22:52:39Z</dc:date>
    </item>
    <item>
      <title>Re: Field is character but shows up in Excel as scientific</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Field-is-character-but-shows-up-in-Excel-as-scientific/m-p/530273#M144987</link>
      <description>&lt;P&gt;Hi:&lt;BR /&gt;ODS does not create an XLS file. It creates an XLSX (ODS EXCEL) or an XML file (ODS TAGSETS.EXCELXP). With the value turned into a number, Excel may still not treat the number correctly.&lt;BR /&gt;&lt;BR /&gt;Typically, which ever one you use, you may have to send a Microsoft format from SAS to Excel.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="big_num_xp_xl.png" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/26591i84D3F08C97A4C320/image-size/large?v=v2&amp;amp;px=999" role="button" title="big_num_xp_xl.png" alt="big_num_xp_xl.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;Cynthia&lt;/P&gt;</description>
      <pubDate>Fri, 25 Jan 2019 23:19:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Field-is-character-but-shows-up-in-Excel-as-scientific/m-p/530273#M144987</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2019-01-25T23:19:46Z</dc:date>
    </item>
    <item>
      <title>Re: Field is character but shows up in Excel as scientific</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Field-is-character-but-shows-up-in-Excel-as-scientific/m-p/538628#M148291</link>
      <description>&lt;P&gt;Thanks for your reply.&amp;nbsp;I was able to resolve the issue.&lt;/P&gt;</description>
      <pubDate>Tue, 26 Feb 2019 13:49:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Field-is-character-but-shows-up-in-Excel-as-scientific/m-p/538628#M148291</guid>
      <dc:creator>cperrelli</dc:creator>
      <dc:date>2019-02-26T13:49:01Z</dc:date>
    </item>
  </channel>
</rss>

