<?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: Exporting to Excel converts text to an exponential number in SAS Enterprise Guide</title>
    <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Exporting-to-Excel-converts-text-to-an-exponential-number/m-p/604379#M35091</link>
    <description>&lt;P&gt;Not if you're just right clicking and selecting export. Otherwise yes, you can control the types of how you export quite closely but it takes some specifications/work sometimes.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;One way is to make sure the cell width is large enough - and check if Excel isn't doing the conversion on its own.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/299736"&gt;@MarkODwyer&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Is there a way of preventing SAS EG (7.15) from converting a text field in the format 1234561E1 to an exponential number when exporting to Excel?&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 15 Nov 2019 03:00:41 GMT</pubDate>
    <dc:creator>Reeza</dc:creator>
    <dc:date>2019-11-15T03:00:41Z</dc:date>
    <item>
      <title>Exporting to Excel converts text to an exponential number</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Exporting-to-Excel-converts-text-to-an-exponential-number/m-p/604358#M35089</link>
      <description>&lt;P&gt;Is there a way of preventing SAS EG (7.15) from converting a text field in the format 1234561E1 to an exponential number when exporting to Excel?&lt;/P&gt;</description>
      <pubDate>Fri, 15 Nov 2019 00:41:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Exporting-to-Excel-converts-text-to-an-exponential-number/m-p/604358#M35089</guid>
      <dc:creator>MarkODwyer</dc:creator>
      <dc:date>2019-11-15T00:41:10Z</dc:date>
    </item>
    <item>
      <title>Re: Exporting to Excel converts text to an exponential number</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Exporting-to-Excel-converts-text-to-an-exponential-number/m-p/604364#M35090</link>
      <description>&lt;P&gt;Have you tried making the column wider in Excel?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Also, it may help to show&amp;nbsp;the code&amp;nbsp;you are using to&amp;nbsp;"export" the data.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 15 Nov 2019 00:58:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Exporting-to-Excel-converts-text-to-an-exponential-number/m-p/604364#M35090</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2019-11-15T00:58:01Z</dc:date>
    </item>
    <item>
      <title>Re: Exporting to Excel converts text to an exponential number</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Exporting-to-Excel-converts-text-to-an-exponential-number/m-p/604379#M35091</link>
      <description>&lt;P&gt;Not if you're just right clicking and selecting export. Otherwise yes, you can control the types of how you export quite closely but it takes some specifications/work sometimes.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;One way is to make sure the cell width is large enough - and check if Excel isn't doing the conversion on its own.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/299736"&gt;@MarkODwyer&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Is there a way of preventing SAS EG (7.15) from converting a text field in the format 1234561E1 to an exponential number when exporting to Excel?&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 15 Nov 2019 03:00:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Exporting-to-Excel-converts-text-to-an-exponential-number/m-p/604379#M35091</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2019-11-15T03:00:41Z</dc:date>
    </item>
    <item>
      <title>Re: Exporting to Excel converts text to an exponential number</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Exporting-to-Excel-converts-text-to-an-exponential-number/m-p/604400#M35092</link>
      <description>&lt;P&gt;Exporting from EG via a task is a two-fold process. First, EG sends code that writes the data to a specifically structured textfile. Next, that file is fed to a data access module (supplied by Microsoft) that "reads" the data into Excel. During that "read" (which is basically an automation of somebody typing in the data), data that&amp;nbsp;&lt;EM&gt;looks&lt;/EM&gt; like a number/date/time is automatically converted.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 15 Nov 2019 07:19:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Exporting-to-Excel-converts-text-to-an-exponential-number/m-p/604400#M35092</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2019-11-15T07:19:56Z</dc:date>
    </item>
    <item>
      <title>Re: Exporting to Excel converts text to an exponential number</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Exporting-to-Excel-converts-text-to-an-exponential-number/m-p/604851#M35105</link>
      <description>&lt;P&gt;Thanks Kurt,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I agree that the automatic conversion is probably happening during the read into Excel. Is there a way of saving the textfile that is sent from SAS? If so I could manually read that textfile into Excel and specify that the field is text.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Just to be clear, I am creating a dataset from the Query Builder. Then from the 'Results' tab I select 'Send To', "Microsoft Excel'. There is no option that i can see to 'Send To' a textfile.&amp;nbsp; &amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 17 Nov 2019 22:30:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Exporting-to-Excel-converts-text-to-an-exponential-number/m-p/604851#M35105</guid>
      <dc:creator>MarkODwyer</dc:creator>
      <dc:date>2019-11-17T22:30:55Z</dc:date>
    </item>
    <item>
      <title>Re: Exporting to Excel converts text to an exponential number</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Exporting-to-Excel-converts-text-to-an-exponential-number/m-p/604856#M35106</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/299736"&gt;@MarkODwyer&lt;/a&gt;&amp;nbsp; - How about using Excel's "Text to Columns" feature after sending to Excel? You can explicitly set a text column there.&lt;/P&gt;</description>
      <pubDate>Sun, 17 Nov 2019 23:44:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Exporting-to-Excel-converts-text-to-an-exponential-number/m-p/604856#M35106</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2019-11-17T23:44:53Z</dc:date>
    </item>
    <item>
      <title>Re: Exporting to Excel converts text to an exponential number</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Exporting-to-Excel-converts-text-to-an-exponential-number/m-p/604857#M35107</link>
      <description>&lt;P&gt;SASKiwi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;Once it has been sent to Excel It is too late to convert it back to text. For example 4526241E1 becomes 4.53E+07 when it gets sent to Excel. 'Text to columns' changes it to 45262410, not 4526241E1.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 17 Nov 2019 23:59:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Exporting-to-Excel-converts-text-to-an-exponential-number/m-p/604857#M35107</guid>
      <dc:creator>MarkODwyer</dc:creator>
      <dc:date>2019-11-17T23:59:04Z</dc:date>
    </item>
    <item>
      <title>Re: Exporting to Excel converts text to an exponential number</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Exporting-to-Excel-converts-text-to-an-exponential-number/m-p/604865#M35108</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/299736"&gt;@MarkODwyer&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Then from the 'Results' tab I select 'Send To', "Microsoft Excel'. There is no option that i can see to 'Send To' a textfile.&amp;nbsp; &amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;It's the Send to option that's causing the issue.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you can instead use PROC EXPORT you may be able to avoid the issue.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 18 Nov 2019 01:56:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Exporting-to-Excel-converts-text-to-an-exponential-number/m-p/604865#M35108</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2019-11-18T01:56:13Z</dc:date>
    </item>
    <item>
      <title>Re: Exporting to Excel converts text to an exponential number</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Exporting-to-Excel-converts-text-to-an-exponential-number/m-p/605312#M35115</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/299736"&gt;@MarkODwyer&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Thanks Kurt,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Just to be clear, I am creating a dataset from the Query Builder. Then from the 'Results' tab I select 'Send To', "Microsoft Excel'. There is no option that i can see to 'Send To' a textfile.&amp;nbsp; &amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Ouch. "Send to" is the least performant and most error-prone way to export data to Excel. It literally starts up Excel in the background and "types" in the data cell by cell. Use the Export task instead, or proc export in code. If you create a file directly in code, you may need to download it to your desktop with the Copy Files task if your SAS runs on a remote server.&lt;/P&gt;</description>
      <pubDate>Tue, 19 Nov 2019 07:07:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Exporting-to-Excel-converts-text-to-an-exponential-number/m-p/605312#M35115</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2019-11-19T07:07:37Z</dc:date>
    </item>
    <item>
      <title>Re: Exporting to Excel converts text to an exponential number</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Exporting-to-Excel-converts-text-to-an-exponential-number/m-p/605607#M35130</link>
      <description>&lt;P&gt;Thanks Kurt&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Yes my SAS runs on a remote server. The approach you referred to (&lt;SPAN&gt;create a file directly in code, you may need to download it to your desktop with the Copy Files task) worked.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;For reference the steps to follow can be found here&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;A href="https://blogs.sas.com/content/sasdummy/2013/05/20/export-and-download-any-file-from-sas-enterprise-guide/" target="_blank"&gt;https://blogs.sas.com/content/sasdummy/2013/05/20/export-and-download-any-file-from-sas-enterprise-guide/&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 20 Nov 2019 02:34:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Exporting-to-Excel-converts-text-to-an-exponential-number/m-p/605607#M35130</guid>
      <dc:creator>MarkODwyer</dc:creator>
      <dc:date>2019-11-20T02:34:16Z</dc:date>
    </item>
  </channel>
</rss>

