<?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 from SAS EG 4.1 to Excel spaces at the end of the text string bug in SAS Enterprise Guide</title>
    <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Export-from-SAS-EG-4-1-to-Excel-spaces-at-the-end-of-the-text/m-p/116228#M9843</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There is no varchar type in SAS. I'm guessing that your Oracle column is VARCHAR(1000), so SAS has to create a CHAR variable of length 1000 to hold possible long values.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But I believe you should be able to get a trimmed version into Excel, because that's what I get.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I can't try your situation because I have EG 5.1. My two thoughts:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. This is a hail mary, and I don't think will work, but try it. Run this code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data AQ.TEST2;&lt;/P&gt;&lt;P&gt;set AQ.TEST;&lt;/P&gt;&lt;P&gt;format CUSTOMER_NAME;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and then export TEST2 to Excel the same way you exported TEST. All this code does is remove the format from the column definition.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. Assuming that doesn't work, put in a case to SAS Tech Support. They have the ability to run different versions of SAS, so they should be able to duplicate your situation and find a solution.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Tom&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 05 Jan 2013 02:12:43 GMT</pubDate>
    <dc:creator>TomKari</dc:creator>
    <dc:date>2013-01-05T02:12:43Z</dc:date>
    <item>
      <title>Export from SAS EG 4.1 to Excel spaces at the end of the text string bug</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Export-from-SAS-EG-4-1-to-Excel-spaces-at-the-end-of-the-text/m-p/116224#M9839</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am using SAS EG 4.1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am new to SQL and EG 4.1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I use a sql query like the following to create a sas tableset :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PROC SQL;&lt;/P&gt;&lt;P&gt; CREATE TABLE AQ.TEST&lt;/P&gt;&lt;P&gt; SELECT&lt;/P&gt;&lt;P&gt;TRIM(CUSTOMERS.CUSTOMER_NAME) as CUSTOMER_NAME&lt;/P&gt;&lt;P&gt; FROM TEST.CUSTOMERS AS CUSTOMERS&lt;/P&gt;&lt;P&gt;;QUIT;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The resulting tableset is a clean column with no space, but for some reason, when I use left click export to Excel, the table exported to excel now has a lot of spaces at the end of the customer name.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does anyone know how to solve this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for your help and time.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Jan 2013 19:58:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Export-from-SAS-EG-4-1-to-Excel-spaces-at-the-end-of-the-text/m-p/116224#M9839</guid>
      <dc:creator>nicnad</dc:creator>
      <dc:date>2013-01-04T19:58:57Z</dc:date>
    </item>
    <item>
      <title>Re: Export from SAS EG 4.1 to Excel spaces at the end of the text string bug</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Export-from-SAS-EG-4-1-to-Excel-spaces-at-the-end-of-the-text/m-p/116225#M9840</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Part 1 of your problem is that SAS doesn't have a variable-length CHARACTER data type, so all of your CUSTOMER_NAME records will be padded out with blanks to the full length of the column (you can check this length with right-click Properties against the table).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What you need is a way to get SAS to strip the trailing blanks when exporting to Excel. That part I don't know.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Tom&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Jan 2013 20:05:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Export-from-SAS-EG-4-1-to-Excel-spaces-at-the-end-of-the-text/m-p/116225#M9840</guid>
      <dc:creator>TomKari</dc:creator>
      <dc:date>2013-01-04T20:05:50Z</dc:date>
    </item>
    <item>
      <title>Re: Export from SAS EG 4.1 to Excel spaces at the end of the text string bug</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Export-from-SAS-EG-4-1-to-Excel-spaces-at-the-end-of-the-text/m-p/116226#M9841</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I did a little more testing, and I can't replicate your problem. When I "right-click export" to Excel, my 50 character column doesn't have trailing blanks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Tom&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Jan 2013 20:42:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Export-from-SAS-EG-4-1-to-Excel-spaces-at-the-end-of-the-text/m-p/116226#M9841</guid>
      <dc:creator>TomKari</dc:creator>
      <dc:date>2013-01-04T20:42:22Z</dc:date>
    </item>
    <item>
      <title>Re: Export from SAS EG 4.1 to Excel spaces at the end of the text string bug</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Export-from-SAS-EG-4-1-to-Excel-spaces-at-the-end-of-the-text/m-p/116227#M9842</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;But your first answer pointed out the problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I right-click Properties against the table TEST, I see that the column CUSTOMER_NAME is length 1000 and format $1000.0 (this must not be right since I want this column to be varchar type) and when I use LEN() function in Excel I see that the cell is 1000 characters long.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How do I set my variable properly in my SQL query in order for it the be the correct length?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for your help and time&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Jan 2013 20:48:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Export-from-SAS-EG-4-1-to-Excel-spaces-at-the-end-of-the-text/m-p/116227#M9842</guid>
      <dc:creator>nicnad</dc:creator>
      <dc:date>2013-01-04T20:48:30Z</dc:date>
    </item>
    <item>
      <title>Re: Export from SAS EG 4.1 to Excel spaces at the end of the text string bug</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Export-from-SAS-EG-4-1-to-Excel-spaces-at-the-end-of-the-text/m-p/116228#M9843</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There is no varchar type in SAS. I'm guessing that your Oracle column is VARCHAR(1000), so SAS has to create a CHAR variable of length 1000 to hold possible long values.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But I believe you should be able to get a trimmed version into Excel, because that's what I get.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I can't try your situation because I have EG 5.1. My two thoughts:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. This is a hail mary, and I don't think will work, but try it. Run this code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data AQ.TEST2;&lt;/P&gt;&lt;P&gt;set AQ.TEST;&lt;/P&gt;&lt;P&gt;format CUSTOMER_NAME;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and then export TEST2 to Excel the same way you exported TEST. All this code does is remove the format from the column definition.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. Assuming that doesn't work, put in a case to SAS Tech Support. They have the ability to run different versions of SAS, so they should be able to duplicate your situation and find a solution.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Tom&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 05 Jan 2013 02:12:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Export-from-SAS-EG-4-1-to-Excel-spaces-at-the-end-of-the-text/m-p/116228#M9843</guid>
      <dc:creator>TomKari</dc:creator>
      <dc:date>2013-01-05T02:12:43Z</dc:date>
    </item>
    <item>
      <title>Re: Export from SAS EG 4.1 to Excel spaces at the end of the text string bug</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Export-from-SAS-EG-4-1-to-Excel-spaces-at-the-end-of-the-text/m-p/116229#M9844</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I was just informed we are moving to SAS 5.1 very shortly... i have been given a copy of the new version to test.&amp;nbsp; Is there a way in 5.1 to perform this task?&amp;nbsp; WOOHOO by the way... can't wait for 5.1... so many more features.&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;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Jan 2013 20:54:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Export-from-SAS-EG-4-1-to-Excel-spaces-at-the-end-of-the-text/m-p/116229#M9844</guid>
      <dc:creator>D_Z_</dc:creator>
      <dc:date>2013-01-07T20:54:08Z</dc:date>
    </item>
    <item>
      <title>Re: Export from SAS EG 4.1 to Excel spaces at the end of the text string bug</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Export-from-SAS-EG-4-1-to-Excel-spaces-at-the-end-of-the-text/m-p/116230#M9845</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, D.Z.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yes, 5.1 is a BIG new release! Check out some of the great new features in the 5.1 Help "What's new in 5.1".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There are a couple of really easy ways to send your SAS data to Excel in 5.1:&lt;/P&gt;&lt;P&gt;1. With your dataset open in the viewer, click Export | Export datasetname, and change the type of file from SAS to Excel. In the Process Flow view, just right click on a dataset and do the same.&lt;/P&gt;&lt;P&gt;2. With your dataset open in the viewer, click Send To | Microsoft Excel, and the dataset will open in Excel. Same works with a right-click in the Process Flow view.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Enjoy!&lt;/P&gt;&lt;P&gt;&amp;nbsp; Tom&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Jan 2013 23:04:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Export-from-SAS-EG-4-1-to-Excel-spaces-at-the-end-of-the-text/m-p/116230#M9845</guid>
      <dc:creator>TomKari</dc:creator>
      <dc:date>2013-01-07T23:04:41Z</dc:date>
    </item>
    <item>
      <title>Re: Export from SAS EG 4.1 to Excel spaces at the end of the text string bug</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Export-from-SAS-EG-4-1-to-Excel-spaces-at-the-end-of-the-text/m-p/116231#M9846</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think maybe I didn't clarify enough of what my end goal was.&amp;nbsp; I am attempting to make a clean dataset with one row holding one observation&amp;nbsp; instead of 6 rows holding one observation.&amp;nbsp; Right now, the dataset is useless to me once imported as has data for one observation spanning into 6 rows.&amp;nbsp; I am not interested in putting the data into excel, as I need to make further queries with this data with other existing DB tables.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Jan 2013 23:27:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Export-from-SAS-EG-4-1-to-Excel-spaces-at-the-end-of-the-text/m-p/116231#M9846</guid>
      <dc:creator>D_Z_</dc:creator>
      <dc:date>2013-01-07T23:27:04Z</dc:date>
    </item>
    <item>
      <title>Re: Export from SAS EG 4.1 to Excel spaces at the end of the text string bug</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Export-from-SAS-EG-4-1-to-Excel-spaces-at-the-end-of-the-text/m-p/116232#M9847</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You probably should open a new discussion thread where you can explain the structure of your data and what you mean by observations spanning rows.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Jan 2013 13:39:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Export-from-SAS-EG-4-1-to-Excel-spaces-at-the-end-of-the-text/m-p/116232#M9847</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2013-01-08T13:39:11Z</dc:date>
    </item>
    <item>
      <title>Re: Export from SAS EG 4.1 to Excel spaces at the end of the text string bug</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Export-from-SAS-EG-4-1-to-Excel-spaces-at-the-end-of-the-text/m-p/116233#M9848</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you for the reply.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This code didn't work either :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data AQ.TEST2;&lt;/P&gt;&lt;P&gt;set AQ.TEST;&lt;/P&gt;&lt;P&gt;format CUSTOMER_NAME;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What is the easiest way to submit a case to SAS tech support and how do I know if my license include support?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Jan 2013 21:19:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Export-from-SAS-EG-4-1-to-Excel-spaces-at-the-end-of-the-text/m-p/116233#M9848</guid>
      <dc:creator>nicnad</dc:creator>
      <dc:date>2013-01-08T21:19:17Z</dc:date>
    </item>
    <item>
      <title>Re: Export from SAS EG 4.1 to Excel spaces at the end of the text string bug</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Export-from-SAS-EG-4-1-to-Excel-spaces-at-the-end-of-the-text/m-p/116234#M9849</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;At the bottom of this page, grey footer area, in tiny print is submit a problem report, that's the easiest way to submit a case to Tech support. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AFAIK all license include support but I suppose it may have changed.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Jan 2013 21:29:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Export-from-SAS-EG-4-1-to-Excel-spaces-at-the-end-of-the-text/m-p/116234#M9849</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2013-01-08T21:29:56Z</dc:date>
    </item>
    <item>
      <title>Re: Export from SAS EG 4.1 to Excel spaces at the end of the text string bug</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Export-from-SAS-EG-4-1-to-Excel-spaces-at-the-end-of-the-text/m-p/116235#M9850</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I just submitted a problem report and will keep you posted with the answer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;nicnad&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Jan 2013 22:08:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Export-from-SAS-EG-4-1-to-Excel-spaces-at-the-end-of-the-text/m-p/116235#M9850</guid>
      <dc:creator>nicnad</dc:creator>
      <dc:date>2013-01-08T22:08:07Z</dc:date>
    </item>
    <item>
      <title>Re: Export from SAS EG 4.1 to Excel spaces at the end of the text string bug</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Export-from-SAS-EG-4-1-to-Excel-spaces-at-the-end-of-the-text/m-p/116236#M9851</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data test;&lt;/P&gt;&lt;P&gt;format A $2000. B $10.;&lt;/P&gt;&lt;P&gt;A='bcd';&lt;/P&gt;&lt;P&gt;B=left(trim(A));&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After exporting this table to xls i got same results. (EG version 4.1)&lt;/P&gt;&lt;P&gt;Column A has "abc + trailing spaces"&lt;/P&gt;&lt;P&gt;Column B has no trailing spaces.&lt;/P&gt;&lt;P&gt;When exporting to text file i get no trailing spaces in A and B columns.&lt;/P&gt;&lt;P&gt;Somehow this result depends on length of a character column.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Sep 2013 11:14:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Export-from-SAS-EG-4-1-to-Excel-spaces-at-the-end-of-the-text/m-p/116236#M9851</guid>
      <dc:creator>Grinvydas</dc:creator>
      <dc:date>2013-09-24T11:14:07Z</dc:date>
    </item>
  </channel>
</rss>

