<?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: export 13 digit number to excel in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/export-13-digit-number-to-excel/m-p/477643#M123064</link>
    <description>&lt;P&gt;How are you currently "exporting" the values.&lt;/P&gt;
&lt;P&gt;And have you tried making the column wider in Excel?&lt;/P&gt;</description>
    <pubDate>Thu, 12 Jul 2018 17:54:17 GMT</pubDate>
    <dc:creator>ballardw</dc:creator>
    <dc:date>2018-07-12T17:54:17Z</dc:date>
    <item>
      <title>export 13 digit number to excel</title>
      <link>https://communities.sas.com/t5/SAS-Programming/export-13-digit-number-to-excel/m-p/477608#M123039</link>
      <description>&lt;P&gt;Anybody know how to export a 13 digit number to excel without it coming out in scientific notation?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 12 Jul 2018 16:52:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/export-13-digit-number-to-excel/m-p/477608#M123039</guid>
      <dc:creator>tomrvincent</dc:creator>
      <dc:date>2018-07-12T16:52:30Z</dc:date>
    </item>
    <item>
      <title>Re: export 13 digit number to excel</title>
      <link>https://communities.sas.com/t5/SAS-Programming/export-13-digit-number-to-excel/m-p/477643#M123064</link>
      <description>&lt;P&gt;How are you currently "exporting" the values.&lt;/P&gt;
&lt;P&gt;And have you tried making the column wider in Excel?&lt;/P&gt;</description>
      <pubDate>Thu, 12 Jul 2018 17:54:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/export-13-digit-number-to-excel/m-p/477643#M123064</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2018-07-12T17:54:17Z</dc:date>
    </item>
    <item>
      <title>Re: export 13 digit number to excel</title>
      <link>https://communities.sas.com/t5/SAS-Programming/export-13-digit-number-to-excel/m-p/477672#M123074</link>
      <description>I'm trying not to do anything in excel manually (that would be too easy...plus I'm dealing with several dozen monthly files).  &lt;BR /&gt;&lt;BR /&gt;I wanted to simply send it as a CSV or text, but the customer is a moron who doesn't know how Excel works.&lt;BR /&gt;&lt;BR /&gt;I just wondered if anyone had a quick fix for this nonsense.</description>
      <pubDate>Thu, 12 Jul 2018 19:52:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/export-13-digit-number-to-excel/m-p/477672#M123074</guid>
      <dc:creator>tomrvincent</dc:creator>
      <dc:date>2018-07-12T19:52:51Z</dc:date>
    </item>
    <item>
      <title>Re: export 13 digit number to excel</title>
      <link>https://communities.sas.com/t5/SAS-Programming/export-13-digit-number-to-excel/m-p/477711#M123090</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/144199"&gt;@tomrvincent&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;I'm trying not to do anything in excel manually (that would be too easy...plus I'm dealing with several dozen monthly files). &lt;BR /&gt;&lt;BR /&gt;I wanted to simply send it as a CSV or text, but the customer is a moron who doesn't know how Excel works.&lt;BR /&gt;&lt;BR /&gt;I just wondered if anyone had a quick fix for this nonsense.&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;That is part of why I asked HOW you are exporting the data. The ODS EXCEL supports an option Absolute_column_width. The following example sets all of the columns to a width of 16&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;ods excel file='footer.xlsx'    
          options(absolute_column_width='16');
proc print data=sashelp.class(obs=5);
run;
ods excel close;
&lt;/PRE&gt;
&lt;P&gt;Or to set width per column:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;ods excel file='x:\footer.xlsx'    
          options(absolute_column_width='16,5,8,10,10' );
proc print data=sashelp.class(obs=5);
run;
ods excel close;&lt;/PRE&gt;
&lt;P&gt;ods tagsets.excelxp creates excel readable XML with the same options if you don't have SAS/Access Interface to PC Files&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 12 Jul 2018 22:52:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/export-13-digit-number-to-excel/m-p/477711#M123090</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2018-07-12T22:52:45Z</dc:date>
    </item>
    <item>
      <title>Re: export 13 digit number to excel</title>
      <link>https://communities.sas.com/t5/SAS-Programming/export-13-digit-number-to-excel/m-p/477868#M123154</link>
      <description>I tried using ods excel but it blows out of memory, so I'm just using proc export.</description>
      <pubDate>Fri, 13 Jul 2018 13:58:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/export-13-digit-number-to-excel/m-p/477868#M123154</guid>
      <dc:creator>tomrvincent</dc:creator>
      <dc:date>2018-07-13T13:58:20Z</dc:date>
    </item>
    <item>
      <title>Re: export 13 digit number to excel</title>
      <link>https://communities.sas.com/t5/SAS-Programming/export-13-digit-number-to-excel/m-p/477878#M123162</link>
      <description>tried it with 5 records and still get scinote in the resulting file.  Width had no effect.</description>
      <pubDate>Fri, 13 Jul 2018 14:39:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/export-13-digit-number-to-excel/m-p/477878#M123162</guid>
      <dc:creator>tomrvincent</dc:creator>
      <dc:date>2018-07-13T14:39:31Z</dc:date>
    </item>
    <item>
      <title>Re: export 13 digit number to excel</title>
      <link>https://communities.sas.com/t5/SAS-Programming/export-13-digit-number-to-excel/m-p/477967#M123187</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/144199"&gt;@tomrvincent&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;tried it with 5 records and still get scinote in the resulting file. Width had no effect.&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;What is the actual format associated with the variable?&lt;/P&gt;
&lt;P&gt;If you use Proc Print as a basic ODS generator then the format applies. If you have a format of best8., or just about anything with a less than 13, or possibly 14, width you'll get some form of truncation or rounding.&lt;/P&gt;
&lt;PRE&gt;data _null_;
  x= 123456781234;
  put  x best8.;
  put x  best11.;

  put x best13.;
run;&lt;/PRE&gt;</description>
      <pubDate>Fri, 13 Jul 2018 17:48:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/export-13-digit-number-to-excel/m-p/477967#M123187</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2018-07-13T17:48:04Z</dc:date>
    </item>
    <item>
      <title>Re: export 13 digit number to excel</title>
      <link>https://communities.sas.com/t5/SAS-Programming/export-13-digit-number-to-excel/m-p/477977#M123192</link>
      <description>I certainly wouldn't use less than 13 with a 13 digit number.  That doesn't make any sense at all.&lt;BR /&gt;&lt;BR /&gt;I tried everything I could think of...settled on bestd13.</description>
      <pubDate>Fri, 13 Jul 2018 18:05:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/export-13-digit-number-to-excel/m-p/477977#M123192</guid>
      <dc:creator>tomrvincent</dc:creator>
      <dc:date>2018-07-13T18:05:44Z</dc:date>
    </item>
  </channel>
</rss>

