<?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: Proc export in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Proc-export/m-p/22745#M3693</link>
    <description>libname myxls "C\Biopharm Business Analysis SAS Project (2009)\BSM Prescriber Reports\nonofeiba1.xls";&lt;BR /&gt;
&lt;BR /&gt;
proc sql;&lt;BR /&gt;
create table myxls.report as&lt;BR /&gt;
select *&lt;BR /&gt;
from work.novo_fieba;&lt;BR /&gt;
quit;&lt;BR /&gt;
&lt;BR /&gt;
Tried this..but the access is denied!!</description>
    <pubDate>Thu, 23 Apr 2009 18:11:07 GMT</pubDate>
    <dc:creator>SASPhile</dc:creator>
    <dc:date>2009-04-23T18:11:07Z</dc:date>
    <item>
      <title>Proc export</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-export/m-p/22743#M3691</link>
      <description>PROC EXPORT DBMS=EXCEL  DATA= work.trials&lt;BR /&gt;
            OUTFILE= "c:\Biopharm Business Analysis SAS Project (2009)\BSM Prescriber Reports\trials.xls" REPLACE;&lt;BR /&gt;
   SHEET="report";&lt;BR /&gt;
    &lt;BR /&gt;
RUN;&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
When I run the above code,instead of going to the specified sheet "report" the output is redirected to report1. i have not created a sheet "report1".  &lt;BR /&gt;
 "1" is added to whatever sheet name i define.</description>
      <pubDate>Thu, 23 Apr 2009 15:12:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-export/m-p/22743#M3691</guid>
      <dc:creator>SASPhile</dc:creator>
      <dc:date>2009-04-23T15:12:05Z</dc:date>
    </item>
    <item>
      <title>Re: Proc export</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-export/m-p/22744#M3692</link>
      <description>Hello SASPhile,&lt;BR /&gt;
&lt;BR /&gt;
I don't really know the cause of the problem. But ... did you know that it is possible to export to excel using an Excel engine? I would do this:&lt;BR /&gt;
&lt;BR /&gt;
libname myxls "c:\Biopharm Business Analysi......";&lt;BR /&gt;
&lt;BR /&gt;
proc sql;&lt;BR /&gt;
  create table myxls.report as&lt;BR /&gt;
  select *&lt;BR /&gt;
  from work.trials;&lt;BR /&gt;
quit;&lt;BR /&gt;
&lt;BR /&gt;
There is something very nice: you can use Excel as any other database engine.&lt;BR /&gt;
&lt;BR /&gt;
Does it help?&lt;BR /&gt;
&lt;BR /&gt;
Yoba</description>
      <pubDate>Thu, 23 Apr 2009 18:02:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-export/m-p/22744#M3692</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2009-04-23T18:02:48Z</dc:date>
    </item>
    <item>
      <title>Re: Proc export</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-export/m-p/22745#M3693</link>
      <description>libname myxls "C\Biopharm Business Analysis SAS Project (2009)\BSM Prescriber Reports\nonofeiba1.xls";&lt;BR /&gt;
&lt;BR /&gt;
proc sql;&lt;BR /&gt;
create table myxls.report as&lt;BR /&gt;
select *&lt;BR /&gt;
from work.novo_fieba;&lt;BR /&gt;
quit;&lt;BR /&gt;
&lt;BR /&gt;
Tried this..but the access is denied!!</description>
      <pubDate>Thu, 23 Apr 2009 18:11:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-export/m-p/22745#M3693</guid>
      <dc:creator>SASPhile</dc:creator>
      <dc:date>2009-04-23T18:11:07Z</dc:date>
    </item>
    <item>
      <title>Re: Proc export</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-export/m-p/22746#M3694</link>
      <description>Best to paste the actual SAS log content (with SAS generated NOTE and other diagnostic ERROR messages intact), rather than the SAS code -- is the LIBNAME statement formatted correctly with your drive letter missing a trailing colon character, possibly?</description>
      <pubDate>Thu, 23 Apr 2009 18:15:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-export/m-p/22746#M3694</guid>
      <dc:creator>sbb</dc:creator>
      <dc:date>2009-04-23T18:15:05Z</dc:date>
    </item>
    <item>
      <title>Re: Proc export</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-export/m-p/22747#M3695</link>
      <description>Hold on ... do you get the error message when you try to open the excel file? If so, you have to unassign the library before opening the excel file. You can do this with the following syntax:&lt;BR /&gt;
&lt;BR /&gt;
libname myxls clear;

Message was edited by: yoba</description>
      <pubDate>Thu, 23 Apr 2009 18:17:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-export/m-p/22747#M3695</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2009-04-23T18:17:06Z</dc:date>
    </item>
  </channel>
</rss>

