<?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 SAS data to excel in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Export-SAS-data-to-excel/m-p/462801#M284901</link>
    <description>&lt;P&gt;Hi:&lt;BR /&gt;&amp;nbsp; Without seeing the code you're using to export (LIBNAME engine, PROC EXPORT, ODS) or seeing the data, it's hard to make a constructive comment.&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp; If you can post the essential part of your code and some of your data, that would be most helpful. When I try using ODS EXCEL with a very large character variable (over 3500 characters), I get everything in Excel correctly.&lt;BR /&gt;&lt;BR /&gt;Cynthia&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="use_ods_excel_bigvar.png" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/20573i770650CA1B1EA652/image-size/large?v=v2&amp;amp;px=999" role="button" title="use_ods_excel_bigvar.png" alt="use_ods_excel_bigvar.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;I put ### at the end of the variable value so I could make sure that the whole string was put into the cell.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here's how I created the data -- using a screen shot so that all 3500+ characters do not wrap funny in the forum posting -- I assume that your character data is coming from an already existing data set or database file:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="make_bigvar.png" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/20574iBF715D51DECA6499/image-size/large?v=v2&amp;amp;px=999" role="button" title="make_bigvar.png" alt="make_bigvar.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 16 May 2018 18:43:16 GMT</pubDate>
    <dc:creator>Cynthia_sas</dc:creator>
    <dc:date>2018-05-16T18:43:16Z</dc:date>
    <item>
      <title>Export SAS data to excel</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Export-SAS-data-to-excel/m-p/462775#M284900</link>
      <description>&lt;P&gt;Hi.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm using the SAS Version 9.4.&lt;/P&gt;&lt;P&gt;I use a macro to import and export data in SAS. First I had a problem when importing data to SAS because the variables were formatted with a maximum length of "$255.", what caused the truncation of some variables and then I changed it to "$1024.".&lt;/P&gt;&lt;P&gt;So now I have a dataset in SAS with that variables formatted as "$1024." but when I try to export them to excel it gives me this error in SAS :"ERROR: The character variable Q422 has too long a value for the MYXLSX library."&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So looking for ideas to solve this problem and export correctly to excel from SAS.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 16 May 2018 17:18:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Export-SAS-data-to-excel/m-p/462775#M284900</guid>
      <dc:creator>Liane</dc:creator>
      <dc:date>2018-05-16T17:18:48Z</dc:date>
    </item>
    <item>
      <title>Re: Export SAS data to excel</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Export-SAS-data-to-excel/m-p/462801#M284901</link>
      <description>&lt;P&gt;Hi:&lt;BR /&gt;&amp;nbsp; Without seeing the code you're using to export (LIBNAME engine, PROC EXPORT, ODS) or seeing the data, it's hard to make a constructive comment.&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp; If you can post the essential part of your code and some of your data, that would be most helpful. When I try using ODS EXCEL with a very large character variable (over 3500 characters), I get everything in Excel correctly.&lt;BR /&gt;&lt;BR /&gt;Cynthia&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="use_ods_excel_bigvar.png" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/20573i770650CA1B1EA652/image-size/large?v=v2&amp;amp;px=999" role="button" title="use_ods_excel_bigvar.png" alt="use_ods_excel_bigvar.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;I put ### at the end of the variable value so I could make sure that the whole string was put into the cell.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here's how I created the data -- using a screen shot so that all 3500+ characters do not wrap funny in the forum posting -- I assume that your character data is coming from an already existing data set or database file:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="make_bigvar.png" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/20574iBF715D51DECA6499/image-size/large?v=v2&amp;amp;px=999" role="button" title="make_bigvar.png" alt="make_bigvar.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 16 May 2018 18:43:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Export-SAS-data-to-excel/m-p/462801#M284901</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2018-05-16T18:43:16Z</dc:date>
    </item>
    <item>
      <title>Re: Export SAS data to excel</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Export-SAS-data-to-excel/m-p/462830#M284902</link>
      <description>&lt;P&gt;One other point: SAS datasets are also ODBC compliant so you can import them using Excel.&lt;/P&gt;</description>
      <pubDate>Wed, 16 May 2018 20:09:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Export-SAS-data-to-excel/m-p/462830#M284902</guid>
      <dc:creator>AlanC</dc:creator>
      <dc:date>2018-05-16T20:09:52Z</dc:date>
    </item>
  </channel>
</rss>

