<?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 SQL Export to Excel in ODS and Base Reporting</title>
    <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/PROC-SQL-Export-to-Excel/m-p/284996#M16365</link>
    <description>&lt;PRE&gt;
Try LIBNAME which is my favorite .




libname xx xlsx '/folders/myfolders/want.xlsx';
proc sql;
create table xx.class as
 select * from sashelp.class;
quit;



&lt;/PRE&gt;</description>
    <pubDate>Sat, 16 Jul 2016 05:58:00 GMT</pubDate>
    <dc:creator>Ksharp</dc:creator>
    <dc:date>2016-07-16T05:58:00Z</dc:date>
    <item>
      <title>PROC SQL Export to Excel</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/PROC-SQL-Export-to-Excel/m-p/284822#M16354</link>
      <description>&lt;P&gt;Is there a way when using proc sql statements in PC SAS to export directly to excel?&amp;nbsp; I'd like to be able to write queries in PC SAS to do this as easily as I can do a "Send To Excel" in Enterprise Guide.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Fri, 15 Jul 2016 13:34:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/PROC-SQL-Export-to-Excel/m-p/284822#M16354</guid>
      <dc:creator>elwayfan446</dc:creator>
      <dc:date>2016-07-15T13:34:47Z</dc:date>
    </item>
    <item>
      <title>Re: PROC SQL Export to Excel</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/PROC-SQL-Export-to-Excel/m-p/284824#M16355</link>
      <description>&lt;P&gt;Simple answer, no. &amp;nbsp;SQL is a query language, it is used for querying data, not for creating proprietary file formats. Simplest method is to proc export the resulting dataset, though I can't see your full process here, so unable to see where best it would fit in.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 15 Jul 2016 13:45:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/PROC-SQL-Export-to-Excel/m-p/284824#M16355</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2016-07-15T13:45:21Z</dc:date>
    </item>
    <item>
      <title>Re: PROC SQL Export to Excel</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/PROC-SQL-Export-to-Excel/m-p/284829#M16356</link>
      <description>Thanks &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/45151"&gt;@RW9&lt;/a&gt;. I am simply running a proc sql query and creating a temp table. I will run a proc export but I was just curious if that could be included in a proc sql statement itself or not.</description>
      <pubDate>Fri, 15 Jul 2016 14:05:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/PROC-SQL-Export-to-Excel/m-p/284829#M16356</guid>
      <dc:creator>elwayfan446</dc:creator>
      <dc:date>2016-07-15T14:05:45Z</dc:date>
    </item>
    <item>
      <title>Re: PROC SQL Export to Excel</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/PROC-SQL-Export-to-Excel/m-p/284832#M16357</link>
      <description>&lt;P&gt;In PC SAS you can right click on a dataset and view in Excel.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you have 9.4 then you can use ODS EXCEL.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Ods excel file='path';&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;proc sql...&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;ods excel close;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;At the end of the day, I agree with&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/45151"&gt;@RW9﻿&lt;/a&gt;&amp;nbsp;and you should use proc export. It's easier to manage outputs in long run IMO.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 15 Jul 2016 14:11:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/PROC-SQL-Export-to-Excel/m-p/284832#M16357</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2016-07-15T14:11:48Z</dc:date>
    </item>
    <item>
      <title>Re: PROC SQL Export to Excel</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/PROC-SQL-Export-to-Excel/m-p/284837#M16358</link>
      <description>&lt;P&gt;I do have 9.4 and this is a useful tool.&amp;nbsp; I wasn't aware of this.&amp;nbsp; I can see the benefit of both options however.&amp;nbsp; I like &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13879"&gt;@Reeza﻿&lt;/a&gt;'s method for the quick and dirty ad hoc query but could see a lot of automation being done easier with &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/45151"&gt;@RW9﻿&lt;/a&gt;'s suggestion using proc export.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you both for the help!&lt;/P&gt;</description>
      <pubDate>Fri, 15 Jul 2016 14:20:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/PROC-SQL-Export-to-Excel/m-p/284837#M16358</guid>
      <dc:creator>elwayfan446</dc:creator>
      <dc:date>2016-07-15T14:20:58Z</dc:date>
    </item>
    <item>
      <title>Re: PROC SQL Export to Excel</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/PROC-SQL-Export-to-Excel/m-p/284996#M16365</link>
      <description>&lt;PRE&gt;
Try LIBNAME which is my favorite .




libname xx xlsx '/folders/myfolders/want.xlsx';
proc sql;
create table xx.class as
 select * from sashelp.class;
quit;



&lt;/PRE&gt;</description>
      <pubDate>Sat, 16 Jul 2016 05:58:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/PROC-SQL-Export-to-Excel/m-p/284996#M16365</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2016-07-16T05:58:00Z</dc:date>
    </item>
  </channel>
</rss>

