<?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 Export excel problem using ods in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Export-excel-problem-using-ods/m-p/159031#M31031</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;When i run the following code i get the error shown in the log snipet below.&amp;nbsp; I am connecting to sas through a citrix connection and wanting to export this out to my local machine.&amp;nbsp; Is there an option somewhere that i am missing?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Damon&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-decoration: underline; font-size: 12pt;"&gt;&lt;STRONG&gt;Code&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;ODS TAGSETS.EXCELXP&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FILE="\\Client\C$\SAS Outputs\Data Analysis.xlsx"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;STYLE=minimal&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;OPTIONS ( Sheet_Name = 'Model' );&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PROC PRINT DATA=work.tmp_user_mod; RUN;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ODS TAGSETS.EXCELXP&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;OPTIONS ( Sheet_Name = 'Cost V' );&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PROC PRINT DATA=work.temp_cost_v; RUN;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ODS TAGSETS.EXCELXP CLOSE;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-decoration: underline; font-size: 12pt;"&gt;&lt;STRONG&gt;Log&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-decoration: underline; font-size: 12pt;"&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;ERROR: Insufficient authorization to access /server/sas/Lev1/SASApp/\\Client\C$\SAS Outputs\Data &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Analysis.xlsx.&lt;/P&gt;&lt;P&gt;ERROR: No body file. TAGSETS.EXCELXP output will not be created.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 27 Jun 2014 22:07:00 GMT</pubDate>
    <dc:creator>dsbihill</dc:creator>
    <dc:date>2014-06-27T22:07:00Z</dc:date>
    <item>
      <title>Export excel problem using ods</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Export-excel-problem-using-ods/m-p/159031#M31031</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;When i run the following code i get the error shown in the log snipet below.&amp;nbsp; I am connecting to sas through a citrix connection and wanting to export this out to my local machine.&amp;nbsp; Is there an option somewhere that i am missing?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Damon&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-decoration: underline; font-size: 12pt;"&gt;&lt;STRONG&gt;Code&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;ODS TAGSETS.EXCELXP&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FILE="\\Client\C$\SAS Outputs\Data Analysis.xlsx"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;STYLE=minimal&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;OPTIONS ( Sheet_Name = 'Model' );&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PROC PRINT DATA=work.tmp_user_mod; RUN;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ODS TAGSETS.EXCELXP&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;OPTIONS ( Sheet_Name = 'Cost V' );&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PROC PRINT DATA=work.temp_cost_v; RUN;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ODS TAGSETS.EXCELXP CLOSE;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-decoration: underline; font-size: 12pt;"&gt;&lt;STRONG&gt;Log&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-decoration: underline; font-size: 12pt;"&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;ERROR: Insufficient authorization to access /server/sas/Lev1/SASApp/\\Client\C$\SAS Outputs\Data &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Analysis.xlsx.&lt;/P&gt;&lt;P&gt;ERROR: No body file. TAGSETS.EXCELXP output will not be created.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Jun 2014 22:07:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Export-excel-problem-using-ods/m-p/159031#M31031</guid>
      <dc:creator>dsbihill</dc:creator>
      <dc:date>2014-06-27T22:07:00Z</dc:date>
    </item>
    <item>
      <title>Re: Export excel problem using ods</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Export-excel-problem-using-ods/m-p/159032#M31032</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It seems to me that you don't have at least write access to that location. Try to copy a random file onto that folder to see what happens. If you can't do that, talk&amp;nbsp; to you network administrator. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Jun 2014 22:25:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Export-excel-problem-using-ods/m-p/159032#M31032</guid>
      <dc:creator>Haikuo</dc:creator>
      <dc:date>2014-06-27T22:25:46Z</dc:date>
    </item>
    <item>
      <title>Re: Export excel problem using ods</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Export-excel-problem-using-ods/m-p/159033#M31033</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thats correct i dont have write access to the /server/sas/lev1/sasapp/ location but i also didn't choose to try and write here.&amp;nbsp; For some reason sas is putting this in front of the location&lt;/P&gt;&lt;P&gt;that i want to write to that is my local client at '\\client\c$\sas outputs'&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Jun 2014 22:31:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Export-excel-problem-using-ods/m-p/159033#M31033</guid>
      <dc:creator>dsbihill</dc:creator>
      <dc:date>2014-06-27T22:31:09Z</dc:date>
    </item>
    <item>
      <title>Re: Export excel problem using ods</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Export-excel-problem-using-ods/m-p/159034#M31034</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Since you specified a RELATIVE location in your file= that may be the issue. Try a fully qualified name such as "C:\folder\file.xlxs" &lt;/P&gt;&lt;P&gt;But there also may be an issue with your apparent sever not seeing that location as the result file is a mix of unix and windows filenaming. There's a question about that in the forum about every day now it seems.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Jun 2014 22:37:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Export-excel-problem-using-ods/m-p/159034#M31034</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2014-06-27T22:37:18Z</dc:date>
    </item>
    <item>
      <title>Re: Export excel problem using ods</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Export-excel-problem-using-ods/m-p/159035#M31035</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi:&lt;/P&gt;&lt;P&gt; The fact that the resolved path is this:&lt;/P&gt;&lt;P&gt;/server/sas/Lev1/SASApp/\\Client\C$\SAS Outputs\Data&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;where the /server/sas/Lev1/SASApp location is "prepended" to the FILE= location indicates to me that &lt;/P&gt;&lt;P&gt;1) SAS is running on a server;&lt;/P&gt;&lt;P&gt;2) the default output location on the server has been "pre-defined" as /server/sas/Lev1/SASApp/ (and usually, this location is set as read-only for all the people who are using SAS on this server)&lt;/P&gt;&lt;P&gt;3) you will need to use a fully qualified path name, to a folder where you have write access, but it will need to be a server location that SAS can see. Generally, this will NOT be your local C drive, unless your administrators have enabled this. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; Another point -- your file extension is incorrect. You cannot use .XLSX as a file extension for TAGSETS.EXCELXP. TAGSETS.EXCELXP creates Spreadsheet Markup Language XML created for Office 2003. The correct file extension is .XML, but, in a pinch, you can name the file with the extension .XLS. Excel will complain about the .XLS, but not about .XML -- I believe that if you use .XLSX, that the file will not open. Using .XLS just fools the Windows registry into launching Excel if you double click on the file. But, Excel will complain with this snarky message shown in this Tech Support note: &lt;A href="http://support.sas.com/kb/31/956.html" title="http://support.sas.com/kb/31/956.html"&gt;31956 - Using the MSOffice2k ODS destination with Microsoft Excel 2007 generates a dialog box. &lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; So, even if you fix the server/file issue, you may still have problems unless you change the file extension.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;cynthia&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 28 Jun 2014 03:24:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Export-excel-problem-using-ods/m-p/159035#M31035</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2014-06-28T03:24:05Z</dc:date>
    </item>
    <item>
      <title>Re: Export excel problem using ods</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Export-excel-problem-using-ods/m-p/159036#M31036</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE __jive_macro_name="quote" class="jive_text_macro jive_macro_quote" modifiedtitle="true"&gt;
&lt;P&gt;Cynthia@sas wrote:&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; Another point -- your file extension is incorrect. You cannot use .XLSX as a file extension for TAGSETS.EXCELXP.&lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Will there be a tagset generating xlsx files in the near future?&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Jun 2014 07:44:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Export-excel-problem-using-ods/m-p/159036#M31036</guid>
      <dc:creator>andreas_lds</dc:creator>
      <dc:date>2014-06-30T07:44:01Z</dc:date>
    </item>
    <item>
      <title>Re: Export excel problem using ods</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Export-excel-problem-using-ods/m-p/159037#M31037</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I wouldn't think so.&amp;nbsp; XLSX is a Microsoft Open Office format file.&amp;nbsp; What that means is that it is in essence a ZIP file (rename the XLSX to zip and then doubkle click it), with several files and folders within it.&amp;nbsp; These files and folders describe the document, the sheets, links formats etc. in a many relational XML format.&amp;nbsp; VBA sections are still compiled binary elements.&amp;nbsp; The tagset ouput just generates a text XML file which Excel then interprets using its own XML parser.&amp;nbsp; To generate an XLSX is not that simple and would require a fair bit of processing.&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Jun 2014 08:25:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Export-excel-problem-using-ods/m-p/159037#M31037</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2014-06-30T08:25:24Z</dc:date>
    </item>
    <item>
      <title>Re: Export excel problem using ods</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Export-excel-problem-using-ods/m-p/234548#M42889</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a very similar problem.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;SAS is running on a remote linux server. &amp;nbsp;I'm using a windows PC. &amp;nbsp;I'm trying to export an excel file from SAS EG to the local PC C:\.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The sys admin is telling me that's not possible. &amp;nbsp;I don't believe him&amp;nbsp;though because it is possible to do it with the export file wizard, so it seems to me it *must* be possible. &amp;nbsp;I just can't work out how to do it in code.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The export file wizard references "\\Client\C$\directory\subdir". &amp;nbsp;When I try to write to that directory using code, it prepends the server name "\opt\prod\...". &amp;nbsp;If I reverse the slash to direction the prepended server name goes away "//\\Client\C$\directory\subdir\" appears to use the right directory, but then I get an insufficient privileages message, even though I do of course have write privelages for "C:\directory\subdir".&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any thoughts? &amp;nbsp;I just don't see how it's plausible that this *can't* be done, given the export wizard can do it easily.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;P&gt;Thomas&lt;/P&gt;</description>
      <pubDate>Fri, 13 Nov 2015 07:20:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Export-excel-problem-using-ods/m-p/234548#M42889</guid>
      <dc:creator>thomasduhs</dc:creator>
      <dc:date>2015-11-13T07:20:20Z</dc:date>
    </item>
  </channel>
</rss>

