<?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: sas export in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/sas-export/m-p/211014#M267392</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You say you've used XLSX but your code shows XLS? &lt;/P&gt;&lt;P&gt;non, I have used XLS&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When you try and open the excel file what happens?&lt;/P&gt;&lt;P&gt;I get a message likes this message posted before here, but for xlsx, but for me, it is xls :&lt;/P&gt;&lt;P&gt;&lt;A __default_attr="52560" __jive_macro_name="thread" class="jive_macro jive_macro_thread" href="https://communities.sas.com/" modifiedtitle="true" title="BASE SAS 9.3 - Proc Export to Excel .XLSX corruption?"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do you get an error there? &lt;/P&gt;&lt;P&gt; non&lt;/P&gt;&lt;P&gt;HAve you tried different DBMS options - EXCEL or XLSX? &lt;/P&gt;&lt;P&gt;I think, I have tried EXCEL, but it does not work.&lt;/P&gt;&lt;P&gt;XLSX not yet&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 25 Jul 2015 13:21:00 GMT</pubDate>
    <dc:creator>LineMoon</dc:creator>
    <dc:date>2015-07-25T13:21:00Z</dc:date>
    <item>
      <title>sas export</title>
      <link>https://communities.sas.com/t5/SAS-Programming/sas-export/m-p/211008#M267386</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I have a datas and I want to explort it,&lt;/P&gt;&lt;P&gt;In sas the export to xls&amp;nbsp; is succesful, but i I cant open my file by export; why ?&lt;/P&gt;&lt;P&gt;any solution&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Jul 2015 23:27:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/sas-export/m-p/211008#M267386</guid>
      <dc:creator>LineMoon</dc:creator>
      <dc:date>2015-07-24T23:27:37Z</dc:date>
    </item>
    <item>
      <title>Re: sas export</title>
      <link>https://communities.sas.com/t5/SAS-Programming/sas-export/m-p/211009#M267387</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;Why did you make XLS instead of XLSX?&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Did you not find the XLS file?&amp;nbsp; What does the SAS log say about where it wrote the file?&lt;/P&gt;&lt;P&gt;Do you even have Microsoft Excel installed to allow you to read an XLS file?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 25 Jul 2015 01:20:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/sas-export/m-p/211009#M267387</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2015-07-25T01:20:20Z</dc:date>
    </item>
    <item>
      <title>Re: sas export</title>
      <link>https://communities.sas.com/t5/SAS-Programming/sas-export/m-p/211010#M267388</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please don't double post:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A __default_attr="85505" __jive_macro_name="thread" class="jive_macro jive_macro_thread" href="https://communities.sas.com/" modifiedtitle="true" title="sas export"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also, please take the time to ask a detailed question. In a lot of your questions people have to ask for more details and try and determine what your asking in the first place.&amp;nbsp; It's a bit of a waste of our, help us help you. Please review the following posts for more information on how to phrase your questions:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://stackoverflow.com/help/how-to-ask" title="http://stackoverflow.com/help/how-to-ask"&gt;http://stackoverflow.com/help/how-to-ask&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A __default_attr="2263" __jive_macro_name="document" class="jive_macro jive_macro_document" href="https://communities.sas.com/"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In this particular question, why doesn't it work?&lt;/P&gt;&lt;P&gt;How doesn't it work? Do you get an error, if so what does it say?&lt;/P&gt;&lt;P&gt;Why are you using XLS instead of XLSX?&lt;/P&gt;&lt;P&gt;What was your proc export code?&lt;/P&gt;&lt;P&gt;What version of SAS are you using? Is it 32 vs 64 bit?&lt;/P&gt;&lt;P&gt;What version of Excel do you have and is it 32 vs 64 bit?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 25 Jul 2015 02:52:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/sas-export/m-p/211010#M267388</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2015-07-25T02:52:22Z</dc:date>
    </item>
    <item>
      <title>Re: sas export</title>
      <link>https://communities.sas.com/t5/SAS-Programming/sas-export/m-p/211011#M267389</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;Why did you make XLS instead of XLSX?&amp;nbsp; for this test, I have used XLSX &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Did you not find the XLS file?&amp;nbsp; Yes, when I use import on file export, I find all my datas&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What does the SAS log say about where it wrote the file? the export was successful&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do you even have Microsoft Excel installed to allow you to read an XLS file? Yes&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note : I click, on .xls file, it does not open it&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 25 Jul 2015 07:34:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/sas-export/m-p/211011#M267389</guid>
      <dc:creator>LineMoon</dc:creator>
      <dc:date>2015-07-25T07:34:04Z</dc:date>
    </item>
    <item>
      <title>Re: sas export</title>
      <link>https://communities.sas.com/t5/SAS-Programming/sas-export/m-p/211012#M267390</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry, I will try to do the best&lt;/P&gt;&lt;P&gt;To answer to yours questions&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In this particular question,&lt;/P&gt;&lt;P&gt;why doesn't it work?&amp;nbsp; Ifor the moment, I do not know&lt;/P&gt;&lt;P&gt;How doesn't it work?&amp;nbsp; I do not understand, what do you mean&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do you get an error, if so what does it say? no, I have no error, it sends a message who says, the export was successful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Why are you using XLS instead of XLSX?&amp;nbsp; Do you prefere the XLSX ?&lt;/P&gt;&lt;P&gt;What was your proc export code?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc export data=toto&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background: white; color: blue; font-family: 'Courier New'; font-size: 10pt;"&gt;dbms&lt;/SPAN&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New'; font-size: 10pt;"&gt;=xls &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; outfile='c:\dir\class.xls'&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New'; font-size: 10pt;"&gt;&lt;SPAN style="background: white; color: blue; font-family: 'Courier New'; font-size: 10pt;"&gt;replace&lt;/SPAN&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New'; font-size: 10pt;"&gt;;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: navy; font-size: 10pt; background: white; font-family: 'Courier New';"&gt;&lt;STRONG&gt;run&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New'; font-size: 10pt;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What version of SAS are you using? Is it 32 vs 64 bit?&amp;nbsp; 64 bit&lt;/P&gt;&lt;P&gt;What version of Excel do you have and is it 32 vs 64 bit? 64 bit&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 25 Jul 2015 07:51:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/sas-export/m-p/211012#M267390</guid>
      <dc:creator>LineMoon</dc:creator>
      <dc:date>2015-07-25T07:51:38Z</dc:date>
    </item>
    <item>
      <title>Re: sas export</title>
      <link>https://communities.sas.com/t5/SAS-Programming/sas-export/m-p/211013#M267391</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You say you've used XLSX but your code shows XLS? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When you try and open the excel file what happens? Do you get an error there? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HAve you tried different DBMS options - EXCEL or XLSX? &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 25 Jul 2015 12:26:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/sas-export/m-p/211013#M267391</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2015-07-25T12:26:43Z</dc:date>
    </item>
    <item>
      <title>Re: sas export</title>
      <link>https://communities.sas.com/t5/SAS-Programming/sas-export/m-p/211014#M267392</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You say you've used XLSX but your code shows XLS? &lt;/P&gt;&lt;P&gt;non, I have used XLS&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When you try and open the excel file what happens?&lt;/P&gt;&lt;P&gt;I get a message likes this message posted before here, but for xlsx, but for me, it is xls :&lt;/P&gt;&lt;P&gt;&lt;A __default_attr="52560" __jive_macro_name="thread" class="jive_macro jive_macro_thread" href="https://communities.sas.com/" modifiedtitle="true" title="BASE SAS 9.3 - Proc Export to Excel .XLSX corruption?"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do you get an error there? &lt;/P&gt;&lt;P&gt; non&lt;/P&gt;&lt;P&gt;HAve you tried different DBMS options - EXCEL or XLSX? &lt;/P&gt;&lt;P&gt;I think, I have tried EXCEL, but it does not work.&lt;/P&gt;&lt;P&gt;XLSX not yet&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 25 Jul 2015 13:21:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/sas-export/m-p/211014#M267392</guid>
      <dc:creator>LineMoon</dc:creator>
      <dc:date>2015-07-25T13:21:00Z</dc:date>
    </item>
    <item>
      <title>Re: sas export</title>
      <link>https://communities.sas.com/t5/SAS-Programming/sas-export/m-p/211015#M267393</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What happens when you try to open the file from within Excel using the FILE-&amp;gt;OPEN menu?&lt;/P&gt;&lt;P&gt;How are you running SAS?&amp;nbsp; For example if you are running SAS by using Enterprise Guide then perhaps the SAS program is running on a different computer.&lt;/P&gt;&lt;P&gt;SAS should actually say exactly where it wrote the file, you can copy and paste from the log into the file selection tool in Excel to make sure that you are trying to open the same file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;193&amp;nbsp;&amp;nbsp; proc export data=sashelp.class file='c:\downloads\class.xlsx' dbms=xlsx ;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;194&amp;nbsp;&amp;nbsp; run;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;NOTE: The export data set has 19 observations and 5 variables.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;NOTE: "c:\downloads\class.xlsx" file was successfully created.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 25 Jul 2015 16:15:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/sas-export/m-p/211015#M267393</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2015-07-25T16:15:57Z</dc:date>
    </item>
    <item>
      <title>Re: sas export</title>
      <link>https://communities.sas.com/t5/SAS-Programming/sas-export/m-p/211016#M267394</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;@tom: thank you for your message&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What happens when you try to open the file from within Excel using the FILE-&amp;gt;OPEN menu?&lt;/P&gt;&lt;P&gt;=====&amp;gt;I have not tried&amp;nbsp; to open the file from within Excel using the FILE-&amp;gt;OPEN menu. I will try and give you the answer later.&lt;/P&gt;&lt;P&gt;For the moment to open it, I click on&amp;nbsp; the .xls file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How are you running SAS?&amp;nbsp; For example if you are running SAS by using Enterprise Guide then perhaps the SAS program is running on a different computer.&lt;/P&gt;&lt;P&gt;SAS should actually say exactly where it wrote the file, you can copy and paste from the log into the file selection tool in Excel to make sure that you are trying to open the same file.&lt;/P&gt;&lt;P&gt;====&amp;gt; I run sas on unix and I use the Enterprise Guide, but the program, I run, it runs only by me.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 25 Jul 2015 23:07:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/sas-export/m-p/211016#M267394</guid>
      <dc:creator>LineMoon</dc:creator>
      <dc:date>2015-07-25T23:07:11Z</dc:date>
    </item>
    <item>
      <title>Re: sas export</title>
      <link>https://communities.sas.com/t5/SAS-Programming/sas-export/m-p/211017#M267395</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So if it runs on UNIX then&lt;/P&gt;&lt;P&gt;1) It will not write a file with a name like 'c:\dir\class.xls' since Unix filenames will look instead like '/dir/class.xls' .&lt;/P&gt;&lt;P&gt;2) You will need to either have the directory that Unix writes to cross mounted to your PC or use some software such as FTP to move the file to your PC.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Are you sure that the file is being moved to your PC as a BINARY file?&amp;nbsp; If FTP moves the file as a text file then it will insert extra carriage returns and those will ruin the binary structure of an XLS file.&lt;/P&gt;&lt;P&gt;3) Or perhaps you are using a SAS PC Files Server that the Unix SAS program can connect to and write a file in Excel format?&amp;nbsp; Where is that server running? Is it on your PC or some other PC on the network?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You should be able to paste the lines from your SAS log with the PROC EXPORT command as I have done above.&lt;/P&gt;&lt;P&gt;If you do not have such lines in your SAS log then perhaps you are not using PROC EXPORT at all?&amp;nbsp; Are you using an Export Task in Enterprise Guide? &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 25 Jul 2015 23:55:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/sas-export/m-p/211017#M267395</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2015-07-25T23:55:27Z</dc:date>
    </item>
  </channel>
</rss>

