<?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 dataset to excel in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Export-dataset-to-excel/m-p/208754#M51735</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you code DBMS=EXCEL then SAS will expect to able to communicate with a running copy of EXCEL.&lt;/P&gt;&lt;P&gt;Use DBMS=XLSX and SAS will generate the xlsx file itself without the need for EXCEL.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 24 Mar 2015 13:28:43 GMT</pubDate>
    <dc:creator>Tom</dc:creator>
    <dc:date>2015-03-24T13:28:43Z</dc:date>
    <item>
      <title>Export dataset to excel</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Export-dataset-to-excel/m-p/208749#M51730</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have some problems with exporting my dataset to excel.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I used this code:&lt;/P&gt;&lt;P&gt;proc export&lt;/P&gt;&lt;P&gt;data=myfolder.ssbf03&lt;/P&gt;&lt;P&gt;DBMS=excel&lt;/P&gt;&lt;P&gt;outfile="users/Username/Desktop/thesis.xslx&lt;/P&gt;&lt;P&gt;Run&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After running this code I've got following errors:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P class="sasError focus-line" id="sasLogError1_1427148283973" style="color: #ff0000; background-color: #c5ced8;"&gt; ERROR 22-322: Syntax error, expecting one of the following: ;, DATA, DBLABEL, DBMS, DEBUG, FILE, LABEL, OUTFILE, OUTTABLE, REPLACE, &lt;/P&gt;&lt;P class="sasError" style="color: #ff0000;"&gt;&amp;nbsp; TABLE, _DEBUG_.&amp;nbsp; &lt;/P&gt;&lt;P class="sasError" id="sasLogError2_1427148283973" style="color: #ff0000;"&gt; ERROR 202-322: The option or parameter is not recognized and will be ignored.&lt;/P&gt;&lt;P class="sasError" style="color: #ff0000;"&gt;&lt;/P&gt;&lt;P class="sasError" style="color: #ff0000;"&gt;&lt;SPAN style="color: #000000;"&gt;Is there please someone who can help me to export this dataset. I'm not really familiar with programming so I have no idea what the problem is.&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="sasError" style="color: #ff0000;"&gt;&lt;/P&gt;&lt;P class="sasError" style="color: #ff0000;"&gt;&lt;SPAN style="color: #000000;"&gt;Thanks a lot!&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Mar 2015 08:04:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Export-dataset-to-excel/m-p/208749#M51730</guid>
      <dc:creator>Bo7</dc:creator>
      <dc:date>2015-03-24T08:04:50Z</dc:date>
    </item>
    <item>
      <title>Re: Export dataset to excel</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Export-dataset-to-excel/m-p/208750#M51731</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Couple of things wrong with the code - missing double quotes after filename, and semi-colons missing at end points, dbms=excel but extension given as XLSX.&amp;nbsp; Update to:&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;proc export &lt;SPAN style="line-height: 1.5em;"&gt;data=myfolder.ssbf03 &lt;/SPAN&gt;&lt;SPAN style="line-height: 1.5em;"&gt;DBMS=excel &lt;/SPAN&gt;&lt;SPAN style="line-height: 1.5em;"&gt;outfile="users/Username/Desktop/thesis.xls";&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;run;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;Note that you need to ensure the path user/username/desktop exists and you have write access to it.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Mar 2015 10:47:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Export-dataset-to-excel/m-p/208750#M51731</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2015-03-24T10:47:15Z</dc:date>
    </item>
    <item>
      <title>Re: Export dataset to excel</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Export-dataset-to-excel/m-p/208751#M51732</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for your help, but I still cannot get it to work. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could you maybe elaborate on what I have to do, and why exactly I have to do that? &lt;/P&gt;&lt;P&gt;Is it possible that the dataset is too big to export it to an excel file? I also tried to export it into a stata (dta) file, because that is the program I would like to use for my thesis research. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I tried to run your code, I got following error message: &lt;/P&gt;&lt;P&gt;&lt;IMG alt="Schermafbeelding 2015-03-24 om 13.00.42.png" class="jive-image-thumbnail jive-image" src="https://communities.sas.com/legacyfs/online/9716_Schermafbeelding 2015-03-24 om 13.00.42.png" width="450" /&gt;&lt;/P&gt;&lt;P&gt;and since I am no programming expert, I have no idea what all these error messages mean.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried to export to a stata file, thinking the dataset was too large for an excel file and then I got this error message:&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Schermafbeelding 2015-03-24 om 13.07.23.png" class="jive-image-thumbnail jive-image" src="https://communities.sas.com/legacyfs/online/9717_Schermafbeelding 2015-03-24 om 13.07.23.png" width="450" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you see what the problem is based on these error messages? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you so much for your help !&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Mar 2015 12:14:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Export-dataset-to-excel/m-p/208751#M51732</guid>
      <dc:creator>Bo7</dc:creator>
      <dc:date>2015-03-24T12:14:09Z</dc:date>
    </item>
    <item>
      <title>Re: Export dataset to excel</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Export-dataset-to-excel/m-p/208752#M51733</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is this the University Edition of SAS?&amp;nbsp; If so then your best off posting your question in there. &lt;/P&gt;&lt;P&gt;&lt;A __default_attr="2028" __jive_macro_name="community" class="jive_macro jive_macro_community active_link" href="https://communities.sas.com/" modifiedtitle="true" title="SAS Analytics U"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I don't use UE so don't know what mappings/modules etc. you have.&amp;nbsp; The first error to me would indicate that you don't have SAS/Access licensed.&amp;nbsp; The second one indicates that the path you have given either doesn't exit, SAS can't see it, or you don't have permission to write to the area.&amp;nbsp; Have a look through the UE version forum however as there is introductory examples and others will have the same issues.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Mar 2015 13:07:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Export-dataset-to-excel/m-p/208752#M51733</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2015-03-24T13:07:06Z</dc:date>
    </item>
    <item>
      <title>Re: Export dataset to excel</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Export-dataset-to-excel/m-p/208753#M51734</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;DBMS=&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;XLSX&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Mar 2015 13:09:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Export-dataset-to-excel/m-p/208753#M51734</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2015-03-24T13:09:58Z</dc:date>
    </item>
    <item>
      <title>Re: Export dataset to excel</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Export-dataset-to-excel/m-p/208754#M51735</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you code DBMS=EXCEL then SAS will expect to able to communicate with a running copy of EXCEL.&lt;/P&gt;&lt;P&gt;Use DBMS=XLSX and SAS will generate the xlsx file itself without the need for EXCEL.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Mar 2015 13:28:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Export-dataset-to-excel/m-p/208754#M51735</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2015-03-24T13:28:43Z</dc:date>
    </item>
    <item>
      <title>Re: Export dataset to excel</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Export-dataset-to-excel/m-p/208755#M51736</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I use the SAS University Edition.&lt;/P&gt;&lt;P&gt;When I try this code:&lt;/P&gt;&lt;P&gt;proc export data=myfolder.ssbf03 DBMS=xlsx outfile="users/boclaes/Desktop/thesis.xlsx";&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I got a lot of error messages as you can see on the screenshot below.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can anyone help me with that, I really don't how to advance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Schermafbeelding 2015-03-24 om 14.41.01.png" class="jive-image-thumbnail jive-image" src="https://communities.sas.com/legacyfs/online/9721_Schermafbeelding 2015-03-24 om 14.41.01.png" width="450" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Mar 2015 13:46:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Export-dataset-to-excel/m-p/208755#M51736</guid>
      <dc:creator>Bo7</dc:creator>
      <dc:date>2015-03-24T13:46:13Z</dc:date>
    </item>
    <item>
      <title>Re: Export dataset to excel</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Export-dataset-to-excel/m-p/208756#M51737</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Your path is wrong. If you have already set the shared fold as Doc said, you should use .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;outfile="/myfolders/thesis.xlsx";&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Mar 2015 13:59:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Export-dataset-to-excel/m-p/208756#M51737</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2015-03-24T13:59:16Z</dc:date>
    </item>
    <item>
      <title>Re: Export dataset to excel</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Export-dataset-to-excel/m-p/208757#M51738</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I still get the same error message, but maybe it has something to do with the fact that it is called myfolder on my computer instead of myfolders, so without the "s". Because when I tried to make the folder I got an error message that there were too many characters as you can see here:&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Schermafbeelding 2015-03-23 om 22.20.16.png" class="jive-image-thumbnail jive-image" src="https://communities.sas.com/legacyfs/online/9722_Schermafbeelding 2015-03-23 om 22.20.16.png" width="450" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the SAS information center, I get this message : &lt;/P&gt;&lt;P&gt;&lt;IMG alt="Schermafbeelding 2015-03-24 om 15.11.08.png" class="jive-image-thumbnail jive-image" src="https://communities.sas.com/legacyfs/online/9723_Schermafbeelding 2015-03-24 om 15.11.08.png" width="450" /&gt;&lt;/P&gt;&lt;P&gt;Could any of this have anything to do with the problem?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Mar 2015 14:15:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Export-dataset-to-excel/m-p/208757#M51738</guid>
      <dc:creator>Bo7</dc:creator>
      <dc:date>2015-03-24T14:15:39Z</dc:date>
    </item>
    <item>
      <title>Re: Export dataset to excel</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Export-dataset-to-excel/m-p/208758#M51739</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Check SAS University Edition 's Documentation to setup the share fold .&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Mar 2015 14:44:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Export-dataset-to-excel/m-p/208758#M51739</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2015-03-24T14:44:02Z</dc:date>
    </item>
    <item>
      <title>Re: Export dataset to excel</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Export-dataset-to-excel/m-p/208759#M51740</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I checked the documentation and corrected the name of my sharefolder into 'myfolders'.&lt;/P&gt;&lt;P&gt;But the problem now is that my dataset is in the 'MyFolders' map as you can see in the lefthand panel.&lt;/P&gt;&lt;P&gt;When I want to specify where my dataset is I used:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;data=myfolders.ssbf03&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But I got the error message that the libref 'MYFOLDERS' exceeds 8 characters. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Mar 2015 15:00:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Export-dataset-to-excel/m-p/208759#M51740</guid>
      <dc:creator>Bo7</dc:creator>
      <dc:date>2015-03-24T15:00:59Z</dc:date>
    </item>
    <item>
      <title>Re: Export dataset to excel</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Export-dataset-to-excel/m-p/208760#M51741</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The LIBREF that you use when defining a libname is limited to 8 characters.&amp;nbsp; But since its purpose is to serve as a place holder to point to the folder it does not have to match the name of the folder.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;libname mystuff '/folders/myfolders';&lt;/P&gt;&lt;P&gt;proc export data=mystuff.ssbf03 ....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Mar 2015 15:10:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Export-dataset-to-excel/m-p/208760#M51741</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2015-03-24T15:10:13Z</dc:date>
    </item>
    <item>
      <title>Re: Export dataset to excel</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Export-dataset-to-excel/m-p/208761#M51742</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks a lot for your help, I think I found the right code.&lt;/P&gt;&lt;P&gt;But now I've got the error message that my dataset contains more than 256 columns. &lt;/P&gt;&lt;P&gt;Is there a way to avoid this problem?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Mar 2015 22:11:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Export-dataset-to-excel/m-p/208761#M51742</guid>
      <dc:creator>Bo7</dc:creator>
      <dc:date>2015-03-24T22:11:07Z</dc:date>
    </item>
    <item>
      <title>Re: Export dataset to excel</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Export-dataset-to-excel/m-p/208762#M51743</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I've finally have the dataset which i need for my master thesis.&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;Thank you all so much for&amp;nbsp; your help, I really appreciate all your comments!&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Mar 2015 14:31:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Export-dataset-to-excel/m-p/208762#M51743</guid>
      <dc:creator>Bo7</dc:creator>
      <dc:date>2015-03-25T14:31:30Z</dc:date>
    </item>
  </channel>
</rss>

