<?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: Why I cannot export this sas data file to Excel (ver 2003) in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Why-I-cannot-export-this-sas-data-file-to-Excel-ver-2003/m-p/109369#M30439</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ksharp.&lt;/P&gt;&lt;P&gt;Great!.&lt;/P&gt;&lt;P&gt;It worked like anything!&lt;/P&gt;&lt;P&gt;Many thanks for your help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hi Art,&lt;/P&gt;&lt;P&gt;Thank you also for your input.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Warm regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mirisage&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 02 Sep 2012 21:21:39 GMT</pubDate>
    <dc:creator>Mirisage</dc:creator>
    <dc:date>2012-09-02T21:21:39Z</dc:date>
    <item>
      <title>Why I cannot export this sas data file to Excel (ver 2003)</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Why-I-cannot-export-this-sas-data-file-to-Excel-ver-2003/m-p/109366#M30436</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi SAS Community,&lt;/P&gt;&lt;P&gt;I have used the SAS dataset named “vtemp” and generated the SAS dataset "a.Table_I_want_finally" using proc summary (Please see below code).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: navy; font-size: 11pt; background: white; font-family: 'Courier New';"&gt;proc&lt;/STRONG&gt; &lt;STRONG style="color: navy; font-size: 11pt; background: white; font-family: 'Courier New';"&gt;summary&lt;/STRONG&gt; &lt;SPAN style="font-family: 'Courier New'; background: white; color: blue; font-size: 11pt;"&gt;data&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 11pt;"&gt;=vtemp&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: blue; font-size: 11pt;"&gt;nway&lt;/SPAN&gt; &lt;SPAN style="font-family: 'Courier New'; background: white; color: blue; font-size: 11pt;"&gt;missing&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 11pt;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: blue; font-size: 11pt;"&gt;format&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 11pt;"&gt; date &lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: teal; font-size: 11pt;"&gt;date9.&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 11pt;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;SPAN style="font-family: 'Courier New'; background: white; color: blue; font-size: 11pt;"&gt;class&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 11pt;"&gt; date;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;SPAN style="font-family: 'Courier New'; background: white; color: blue; font-size: 11pt;"&gt;var&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 11pt;"&gt; Current One_to_30 Thirty_to_60 Sixty_to_90 Ninety_plus NPNA write_off;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;SPAN style="font-family: 'Courier New'; background: white; color: blue; font-size: 11pt;"&gt;output&lt;/SPAN&gt; &lt;SPAN style="font-family: 'Courier New'; background: white; color: blue; font-size: 11pt;"&gt;out&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 11pt;"&gt;=a.Table_I_want_finally(&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: blue; font-size: 11pt;"&gt;drop&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 11pt;"&gt;=_:)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="font-family: 'Courier New'; background: white; color: blue; font-size: 11pt;"&gt;sum&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 11pt;"&gt;=;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: navy; font-size: 11pt; background: white; font-family: 'Courier New';"&gt;run&lt;/STRONG&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 11pt;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: navy; font-size: 11pt; background: white; font-family: 'Courier New';"&gt;proc&lt;/STRONG&gt; &lt;STRONG style="color: navy; font-size: 11pt; background: white; font-family: 'Courier New';"&gt;print&lt;/STRONG&gt; &lt;SPAN style="font-family: 'Courier New'; background: white; color: blue; font-size: 11pt;"&gt;data&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 11pt;"&gt;= a.Table_I_want_finally;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: navy; font-size: 11pt; background: white; font-family: 'Courier New';"&gt;run&lt;/STRONG&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 11pt;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 11pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #ff00ff; font-size: 12pt;"&gt;&lt;STRONG style="background: white; font-family: 'Courier New';"&gt;Now I want to export &lt;/STRONG&gt;&lt;SPAN style="font-family: 'Courier New'; background: white;"&gt;a.Table_I_want_finally to Excel (ver. 1993), and I used the following code.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: navy; background: white; font-family: 'Courier New';"&gt; &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: navy; font-size: 11pt; background: white; font-family: 'Courier New';"&gt;PROC&lt;/STRONG&gt; &lt;STRONG style="color: navy; font-size: 11pt; background: white; font-family: 'Courier New';"&gt;EXPORT&lt;/STRONG&gt; &lt;SPAN style="font-family: 'Courier New'; background: white; color: blue; font-size: 11pt;"&gt;DATA&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 11pt;"&gt;=a.Table_I_want_finally&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: blue; font-size: 11pt;"&gt;OUTFILE&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 11pt;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: purple; font-size: 11pt;"&gt;"\\xxxxx-a9-sas01\kkm\data\ANYNAME.xls"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: blue; font-size: 11pt;"&gt;DBMS&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 11pt;"&gt;=EXCEL &lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: blue; font-size: 11pt;"&gt;REPLACE&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 11pt;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: blue; font-size: 11pt;"&gt;PUTNAMES&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 11pt;"&gt;=YES;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 11pt;"&gt;run;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;An error messege comes like this:&lt;BR /&gt;&lt;SPAN style="color: #ff0000;"&gt;ERROR: DBMS type EXCEL not valid for export.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Then commented out dbms statement and ran.&lt;/P&gt;&lt;P&gt;Then this error message comes.&lt;BR /&gt;&lt;SPAN style="color: #ff0000;"&gt;ERROR 180-322: Statement is not valid or it is used out of proper order.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Could any one help me to get over this problem?&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;From the literature, I found these:&lt;BR /&gt;DBMS= tells SAS what kind of file to create; the default is Excel 5. But what is the meaning of it?&lt;/P&gt;&lt;P&gt;PUTNAMES to output the variable name. If "PUTNAMES=NO" is used, the export procedure will not output any variable names, beginning with the data record instead.&lt;/P&gt;&lt;P&gt;But why then error message comes?&lt;/P&gt;&lt;P&gt;Thank you for the help&lt;/P&gt;&lt;P&gt;Mirisage&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Aug 2012 22:44:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Why-I-cannot-export-this-sas-data-file-to-Excel-ver-2003/m-p/109366#M30436</guid>
      <dc:creator>Mirisage</dc:creator>
      <dc:date>2012-08-30T22:44:53Z</dc:date>
    </item>
    <item>
      <title>Re: Why I cannot export this sas data file to Excel (ver 2003)</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Why-I-cannot-export-this-sas-data-file-to-Excel-ver-2003/m-p/109367#M30437</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Does your site license SAS/Access for PC File Formats?&amp;nbsp; If not, then you can't use the Excel engine.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Aug 2012 22:49:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Why-I-cannot-export-this-sas-data-file-to-Excel-ver-2003/m-p/109367#M30437</guid>
      <dc:creator>art297</dc:creator>
      <dc:date>2012-08-30T22:49:34Z</dc:date>
    </item>
    <item>
      <title>Re: Why I cannot export this sas data file to Excel (ver 2003)</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Why-I-cannot-export-this-sas-data-file-to-Excel-ver-2003/m-p/109368#M30438</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Or if your excel file is in English, try to use XLS engine .&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; background: none repeat scroll 0% 0% white; color: blue; font-size: 11pt;"&gt;DBMS&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: none repeat scroll 0% 0% white; color: black; font-size: 11pt;"&gt;=XLS&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 31 Aug 2012 02:48:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Why-I-cannot-export-this-sas-data-file-to-Excel-ver-2003/m-p/109368#M30438</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2012-08-31T02:48:04Z</dc:date>
    </item>
    <item>
      <title>Re: Why I cannot export this sas data file to Excel (ver 2003)</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Why-I-cannot-export-this-sas-data-file-to-Excel-ver-2003/m-p/109369#M30439</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ksharp.&lt;/P&gt;&lt;P&gt;Great!.&lt;/P&gt;&lt;P&gt;It worked like anything!&lt;/P&gt;&lt;P&gt;Many thanks for your help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hi Art,&lt;/P&gt;&lt;P&gt;Thank you also for your input.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Warm regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mirisage&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 02 Sep 2012 21:21:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Why-I-cannot-export-this-sas-data-file-to-Excel-ver-2003/m-p/109369#M30439</guid>
      <dc:creator>Mirisage</dc:creator>
      <dc:date>2012-09-02T21:21:39Z</dc:date>
    </item>
  </channel>
</rss>

