<?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: How to export a sas (EG 5.1) table to excel2007 using code (and not a wizard) in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/How-to-export-a-sas-EG-5-1-table-to-excel2007-using-code-and-not/m-p/89709#M25595</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Proc EXPORT to Excel works fine in an EG / remote SAS server environment as long as SAS/Access to PC File Formats is licensed (check usiing PROC SETINIT), and required MS Office components are installed. We use it all the time in this environment. The Excel LIBNAME also works.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can use the ODS approach if you don't have SAS/Access to PC File Formats but you are limited to creating a new spreadsheet from scratch with all required tabs each time you export - you can't add to an existing spreadsheet.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 25 Jul 2013 23:02:13 GMT</pubDate>
    <dc:creator>SASKiwi</dc:creator>
    <dc:date>2013-07-25T23:02:13Z</dc:date>
    <item>
      <title>How to export a sas (EG 5.1) table to excel2007 using code (and not a wizard)</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-to-export-a-sas-EG-5-1-table-to-excel2007-using-code-and-not/m-p/89699#M25585</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;i would need to export many sas tables into different sheets of a unique excel workbook 2007 .xlsx.&amp;nbsp; In enterprise guide 5.1 there is a wizard which allows me to partially do that: i cannot send tables to specific sheets of a unique workbook tough. but the worst thing is that i need to save many tables and possibly integrate this step in a macro so that i need to code it And not using a wizard. Thanks for any help!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;jacopo&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Jul 2013 09:28:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-to-export-a-sas-EG-5-1-table-to-excel2007-using-code-and-not/m-p/89699#M25585</guid>
      <dc:creator>j4copo</dc:creator>
      <dc:date>2013-07-25T09:28:02Z</dc:date>
    </item>
    <item>
      <title>Re: How to export a sas (EG 5.1) table to excel2007 using code (and not a wizard)</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-to-export-a-sas-EG-5-1-table-to-excel2007-using-code-and-not/m-p/89700#M25586</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;you will have to write the code then.&amp;nbsp; Check out the manual, SAS/Access for PC Files.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I should add that if you search these forums for "excel" you will find a lot of examples showing what you want to do.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Jul 2013 12:37:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-to-export-a-sas-EG-5-1-table-to-excel2007-using-code-and-not/m-p/89700#M25586</guid>
      <dc:creator>Doc_Duke</dc:creator>
      <dc:date>2013-07-25T12:37:47Z</dc:date>
    </item>
    <item>
      <title>Re: How to export a sas (EG 5.1) table to excel2007 using code (and not a wizard)</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-to-export-a-sas-EG-5-1-table-to-excel2007-using-code-and-not/m-p/89701#M25587</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use something like this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;/* Create Archive of&amp;nbsp; your data&amp;nbsp; */&lt;/P&gt;&lt;P&gt;proc&amp;nbsp; export data=&amp;nbsp; Your dataset&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; outfile= " Put the path or location where you want the file to go" &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; dbms=excel replace;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; sheet="Totals"; &lt;BR /&gt;run;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Jul 2013 12:45:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-to-export-a-sas-EG-5-1-table-to-excel2007-using-code-and-not/m-p/89701#M25587</guid>
      <dc:creator>fred_major</dc:creator>
      <dc:date>2013-07-25T12:45:40Z</dc:date>
    </item>
    <item>
      <title>Re: How to export a sas (EG 5.1) table to excel2007 using code (and not a wizard)</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-to-export-a-sas-EG-5-1-table-to-excel2007-using-code-and-not/m-p/89702#M25588</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jacopo,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I suggest looking at using ODS ExcelXP tagsets. Some links you may find useful are:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;SPAN style="color: #000000; font-family: '.HelveticaNeueUI'; font-size: 15px; text-align: -webkit-auto;"&gt;&lt;A class="jive-link-external-small" href="http://support.sas.com/rnd/base/ods/odsmarkup/TipSheet_ods_xl_xp.pdf"&gt;http://support.sas.com/rnd/base/ods/odsmarkup/TipSheet_ods_xl_xp.pdf&lt;/A&gt;&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="text-align: -webkit-auto; color: #000000; font-size: 15px; font-family: '.HelveticaNeueUI';"&gt;&lt;A class="jive-link-external-small" href="http://support.sas.com/resources/papers/proceedings12/150-2012.pdf"&gt;http://support.sas.com/resources/papers/proceedings12/150-2012.pdf&lt;/A&gt;&lt;/SPAN&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;MIchelle&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Jul 2013 12:49:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-to-export-a-sas-EG-5-1-table-to-excel2007-using-code-and-not/m-p/89702#M25588</guid>
      <dc:creator>MichelleHomes</dc:creator>
      <dc:date>2013-07-25T12:49:17Z</dc:date>
    </item>
    <item>
      <title>Re: How to export a sas (EG 5.1) table to excel2007 using code (and not a wizard)</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-to-export-a-sas-EG-5-1-table-to-excel2007-using-code-and-not/m-p/89703#M25589</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;You can create an excel workbook with multiple sheets using eg.&lt;/P&gt;&lt;P&gt;The important thing is the file name. Find out the name of the location&lt;/P&gt;&lt;P&gt;where you have permission on the SAS server. You can run something in EG and read&lt;/P&gt;&lt;P&gt;the log, and it will diplay the file path.&lt;/P&gt;&lt;P&gt;The code below will create one excel workbook with one sheet, if you want multiple sheets&lt;/P&gt;&lt;P&gt;then after the run statement type QUIT; and repeat all steps but not #1 and not #3. Because you only need one file statement to create a workbook, but you need a to repeat all the steps to created multiple sheets. After you run it, you click on results and youll get a promp asking you if you want to open the file, and it may give you a warning, but just go ahead and click yes, then an excel icon will appear and pulsate, and after you click on the icon, your output will open in a nice formatted excel spreadsheet. You can add all kinds of options, but you can look those up yourself.&lt;/P&gt;&lt;P&gt;I am submitting a paper to SUGI, it seems that there are a lot of people who have to use EG, but dont know that you can simulate the good old proc export like we use too in BASE SAS.&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;R&lt;/P&gt;&lt;P&gt;Then&lt;/P&gt;&lt;P&gt;Here is the code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1.ods _all_ close;&lt;/P&gt;&lt;P&gt;2.ODS MARKUP TAGSET=TAGSETS.EXCELXP&lt;/P&gt;&lt;P&gt;3.file='/var/opt/data/userdata/---&amp;gt;&amp;gt;&amp;gt;...type your name/userid here...&amp;lt;---./file_name.xls'&lt;/P&gt;&lt;P&gt;4.style = statistical&lt;/P&gt;&lt;P&gt;5.options( put any option you want)&lt;BR /&gt;6.proc print data=your data name and options;&lt;/P&gt;&lt;P&gt;7. var your_var_name/style= [ your options];&lt;/P&gt;&lt;P&gt;8.run;&lt;/P&gt;&lt;P&gt;9.ODS TAGSETS.EXCELP CLOSE;&lt;/P&gt;&lt;P&gt;10. ODS LISTING;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Jul 2013 17:48:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-to-export-a-sas-EG-5-1-table-to-excel2007-using-code-and-not/m-p/89703#M25589</guid>
      <dc:creator>rachel</dc:creator>
      <dc:date>2013-07-25T17:48:08Z</dc:date>
    </item>
    <item>
      <title>Re: How to export a sas (EG 5.1) table to excel2007 using code (and not a wizard)</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-to-export-a-sas-EG-5-1-table-to-excel2007-using-code-and-not/m-p/89704#M25590</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok...so what exactly do you need to do?&lt;/P&gt;&lt;P&gt;You can either use the code above and write a program in EG, or you can use EG and after generating the results click on the tab "Export" its beteween "Refresh" and "Send To" after you click select the second option "Export SAS Report as a Step in the Project" then youll get a pop up window with saving options.&lt;/P&gt;&lt;P&gt;Then you can open it from excel. Later you can combine all those tables into one workbook using excel commands.&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;-R&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Jul 2013 19:19:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-to-export-a-sas-EG-5-1-table-to-excel2007-using-code-and-not/m-p/89704#M25590</guid>
      <dc:creator>rachel</dc:creator>
      <dc:date>2013-07-25T19:19:12Z</dc:date>
    </item>
    <item>
      <title>Re: How to export a sas (EG 5.1) table to excel2007 using code (and not a wizard)</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-to-export-a-sas-EG-5-1-table-to-excel2007-using-code-and-not/m-p/89705#M25591</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you need to export data to Excel, export it. You don't need to use ODS and tagsets.&lt;/P&gt;&lt;P&gt;As fred.major already suggested, use proc export. If you want multiple datasets exported in the same Excel file, outfile name should be the same for all exported datasets. And you can easy convert this code to macro. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style=": ; color: #000080; font-size: 8pt; font-family: Courier New;"&gt;proc&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt; font-family: Courier New;"&gt; &lt;/SPAN&gt;&lt;STRONG style=": ; color: #000080; font-size: 8pt; font-family: Courier New;"&gt;export&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt; font-family: Courier New;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt; font-family: Courier New;"&gt;data&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; font-family: Courier New;"&gt; = your_data1&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt; font-family: Courier New;"&gt;outfile&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; font-family: Courier New;"&gt; = &lt;/SPAN&gt;&lt;SPAN style="color: #800080; font-size: 8pt; font-family: Courier New;"&gt;"your_path\your_excel_file_name.xlsx"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt; font-family: Courier New;"&gt;dbms&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; font-family: Courier New;"&gt; = excel &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt; font-family: Courier New;"&gt;replace&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; font-family: Courier New;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt; font-family: Courier New;"&gt;sheet&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; font-family: Courier New;"&gt; = &lt;/SPAN&gt;&lt;SPAN style="color: #800080; font-size: 8pt; font-family: Courier New;"&gt;"sheet_with_data1"&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; font-family: Courier New;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt; font-family: Courier New;"&gt;run&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; font-family: Courier New;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt; font-family: Courier New;"&gt;...&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style=": ; color: #000080; font-size: 8pt; font-family: Courier New;"&gt;proc&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt; font-family: Courier New;"&gt; &lt;/SPAN&gt;&lt;STRONG style=": ; color: #000080; font-size: 8pt; font-family: Courier New;"&gt;export&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt; font-family: Courier New;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt; font-family: Courier New;"&gt;data&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; font-family: Courier New;"&gt; = your_dataN&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt; font-family: Courier New;"&gt;outfile&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; font-family: Courier New;"&gt; = &lt;/SPAN&gt;&lt;SPAN style="color: #800080; font-size: 8pt; font-family: Courier New;"&gt;"your_path\your_excel_file_name.xlsx" &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt; font-family: Courier New;"&gt;dbms&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; font-family: Courier New;"&gt; = excel &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt; font-family: Courier New;"&gt;replace&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; font-family: Courier New;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt; font-family: Courier New;"&gt;sheet&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; font-family: Courier New;"&gt; = &lt;/SPAN&gt;&lt;SPAN style="color: #800080; font-size: 8pt; font-family: Courier New;"&gt;"sheet_with_dataN"&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; font-family: Courier New;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt; font-family: Courier New;"&gt;run&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; font-family: Courier New;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Good luck!&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Jul 2013 21:24:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-to-export-a-sas-EG-5-1-table-to-excel2007-using-code-and-not/m-p/89705#M25591</guid>
      <dc:creator>Marina</dc:creator>
      <dc:date>2013-07-25T21:24:32Z</dc:date>
    </item>
    <item>
      <title>Re: How to export a sas (EG 5.1) table to excel2007 using code (and not a wizard)</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-to-export-a-sas-EG-5-1-table-to-excel2007-using-code-and-not/m-p/89706#M25592</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Marina,&lt;/P&gt;&lt;P&gt;The point is that proc export/proc import doesnt work in SAS EG.&lt;/P&gt;&lt;P&gt;I thought that the questionsj4copo posted on July 25th is&lt;/P&gt;&lt;P&gt;How to export sas eg table into excel?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You cant use proc export or proc import in SAS EG.&lt;/P&gt;&lt;P&gt;Thats why the tagsets.&lt;/P&gt;&lt;P&gt;-R&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Jul 2013 21:48:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-to-export-a-sas-EG-5-1-table-to-excel2007-using-code-and-not/m-p/89706#M25592</guid>
      <dc:creator>rachel</dc:creator>
      <dc:date>2013-07-25T21:48:22Z</dc:date>
    </item>
    <item>
      <title>Re: How to export a sas (EG 5.1) table to excel2007 using code (and not a wizard)</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-to-export-a-sas-EG-5-1-table-to-excel2007-using-code-and-not/m-p/89707#M25593</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;As you will find there are many ways to do things in SAS. The reason why I suggested ODS ExcelXP tagsets is because this method does not rely on having SAS/Access to PC File Formats licensed. Using PROC EXPORT with the excel engine does. If you do have SAS/Access to PC File Formats licensed then another approach is to use the Excel libname engine. This is where you set up a library reference that points to an excel workbook and then you can reference your worksheets as if they are SAS datasets.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example:&lt;/P&gt;&lt;PRE&gt;*The libname statement may vary depending on the bit level of your operating system and your SAS server. See article below;
libname myxls excel "your_path\name_of_excel_file.xlsx"; 
proc copy in=work.yourSASdataset out=myxls.nameOfworksheet;
run;
libname myxls close;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Or alternatively as you create the dataset you simply create it in the spreadsheet without having to create a SAS dataset as well.&lt;/P&gt;&lt;P&gt;For example:&lt;/P&gt;&lt;PRE&gt;libname myxls excel "your_path\name_of_excel_file.xlsx";
data myxls.dataset1; *You are writing to the worksheet in the spreadsheet directly;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; set work.someOthertable;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ..... SAS code...
run;
libname myxls close;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Chris Hemedinger wrote a few post about working with excel that you may be interested to read: &lt;A class="active_link" href="http://blogs.sas.com/content/sasdummy/2012/02/11/export-excel-methods/" title="http://blogs.sas.com/content/sasdummy/2012/02/11/export-excel-methods/"&gt;http://blogs.sas.com/content/sasdummy/2012/02/11/export-excel-methods/&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Jul 2013 21:59:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-to-export-a-sas-EG-5-1-table-to-excel2007-using-code-and-not/m-p/89707#M25593</guid>
      <dc:creator>MichelleHomes</dc:creator>
      <dc:date>2013-07-25T21:59:35Z</dc:date>
    </item>
    <item>
      <title>Re: How to export a sas (EG 5.1) table to excel2007 using code (and not a wizard)</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-to-export-a-sas-EG-5-1-table-to-excel2007-using-code-and-not/m-p/89708#M25594</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I tried but the code you posted above in sas eg produced an error&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thats why i use tagset with a file name&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This doesnt work when you have sas eg run on a remote server&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-R&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Jul 2013 22:15:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-to-export-a-sas-EG-5-1-table-to-excel2007-using-code-and-not/m-p/89708#M25594</guid>
      <dc:creator>rachel</dc:creator>
      <dc:date>2013-07-25T22:15:11Z</dc:date>
    </item>
    <item>
      <title>Re: How to export a sas (EG 5.1) table to excel2007 using code (and not a wizard)</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-to-export-a-sas-EG-5-1-table-to-excel2007-using-code-and-not/m-p/89709#M25595</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Proc EXPORT to Excel works fine in an EG / remote SAS server environment as long as SAS/Access to PC File Formats is licensed (check usiing PROC SETINIT), and required MS Office components are installed. We use it all the time in this environment. The Excel LIBNAME also works.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can use the ODS approach if you don't have SAS/Access to PC File Formats but you are limited to creating a new spreadsheet from scratch with all required tabs each time you export - you can't add to an existing spreadsheet.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Jul 2013 23:02:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-to-export-a-sas-EG-5-1-table-to-excel2007-using-code-and-not/m-p/89709#M25595</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2013-07-25T23:02:13Z</dc:date>
    </item>
    <item>
      <title>Re: How to export a sas (EG 5.1) table to excel2007 using code (and not a wizard)</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-to-export-a-sas-EG-5-1-table-to-excel2007-using-code-and-not/m-p/89710#M25596</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Rachel,&lt;/P&gt;&lt;P&gt;Proc EXPORT works in EG just fine.&lt;/P&gt;&lt;P&gt;Moreover, the EG wizard allowing to export to Excel is mentioned, so I would assume the SAS/Access to PC File Format is present. Also, the original question was how to export in Excel 2007 (.xlsxI). And considering the possibility to use code in macro, I think using proc EXPORT with REPLACE would be the way to do it. &lt;/P&gt;&lt;P&gt;The Excel LIBNAME works too, but to use it in would be time-consuming.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Marina&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;P.S. Would be actually nice to hear from the person who posted the question in first place.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Jul 2013 02:23:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-to-export-a-sas-EG-5-1-table-to-excel2007-using-code-and-not/m-p/89710#M25596</guid>
      <dc:creator>Marina</dc:creator>
      <dc:date>2013-07-26T02:23:17Z</dc:date>
    </item>
    <item>
      <title>Re: How to export a sas (EG 5.1) table to excel2007 using code (and not a wizard)</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-to-export-a-sas-EG-5-1-table-to-excel2007-using-code-and-not/m-p/89711#M25597</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Marina,&lt;/P&gt;&lt;P&gt;Proc export doesnt work in EG when you have your data on a server.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There is an error message.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ERROR; DBMS type EXCEL not valid for export.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I even called SAS and put it a ticket about this in the past and they confirmed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I know it works in BASE SAS because I used it, but not in EG with a remote server.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-R&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Jul 2013 14:28:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-to-export-a-sas-EG-5-1-table-to-excel2007-using-code-and-not/m-p/89711#M25597</guid>
      <dc:creator>rachel</dc:creator>
      <dc:date>2013-07-26T14:28:03Z</dc:date>
    </item>
    <item>
      <title>Re: How to export a sas (EG 5.1) table to excel2007 using code (and not a wizard)</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-to-export-a-sas-EG-5-1-table-to-excel2007-using-code-and-not/m-p/89712#M25598</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Rachel you got the point. i think the all problem could be overcome by enabling&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt; SAS/Access to PC File Formats as Saskiwi wrote. I do not know if this is possible, I hope the IT dept will help me out, thanks everyone for your replies.. &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Aug 2013 18:43:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-to-export-a-sas-EG-5-1-table-to-excel2007-using-code-and-not/m-p/89712#M25598</guid>
      <dc:creator>j4copo</dc:creator>
      <dc:date>2013-08-01T18:43:58Z</dc:date>
    </item>
    <item>
      <title>Re: How to export a sas (EG 5.1) table to excel2007 using code (and not a wizard)</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-to-export-a-sas-EG-5-1-table-to-excel2007-using-code-and-not/m-p/89713#M25599</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;BR /&gt;hi ,&lt;/P&gt;&lt;P&gt;i find the best way to export to an excel format without a wizard is by using ods tagsets.ExcelXP.&lt;/P&gt;&lt;P&gt;this works on a linux based server and you get a excel output in .xls format.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;here is an example (fill in the &lt;STRONG&gt;XXXXX and the path&lt;/STRONG&gt;) :&lt;/P&gt;&lt;P&gt;************************************************* &lt;/P&gt;&lt;P&gt;ods tagsets.ExcelXP options(embedded_titles='Yes') &lt;BR /&gt;file&lt;STRONG&gt;="/file_path/file_name.xls"&lt;/STRONG&gt;&amp;nbsp; style=Sasweb&lt;BR /&gt;options(Autofit_height='yes' Absolute_Column_Width='3,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10' autofilter='all'&amp;nbsp;&amp;nbsp; );&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;title &lt;STRONG&gt;"XXXXX&lt;/STRONG&gt;";&lt;BR /&gt;ods tagsets.ExcelXP options (sheet_name = "&lt;STRONG&gt;XXXXXX&lt;/STRONG&gt;") ;&lt;BR /&gt;proc print data=&lt;STRONG&gt;XXXXXXX&lt;/STRONG&gt;&amp;nbsp; label;&lt;BR /&gt;;&lt;BR /&gt;label&lt;BR /&gt;;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;title ;&lt;BR /&gt;ods _all_ close; &lt;/P&gt;&lt;P&gt;*****************************************************&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Nov 2013 08:10:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-to-export-a-sas-EG-5-1-table-to-excel2007-using-code-and-not/m-p/89713#M25599</guid>
      <dc:creator>anonymous_user</dc:creator>
      <dc:date>2013-11-18T08:10:06Z</dc:date>
    </item>
    <item>
      <title>Re: How to export a sas (EG 5.1) table to excel2007 using code (and not a wizard)</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-to-export-a-sas-EG-5-1-table-to-excel2007-using-code-and-not/m-p/89714#M25600</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi guys,&lt;/P&gt;&lt;P&gt;thanks a lot for all the help..&lt;/P&gt;&lt;P&gt;I finally found a way to export an excel file using code and no wizard. I used &lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;ods tagsets.ExcelXP, but the created files are saved in a temporary folder in my pc, then it is not all good..&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;Today I got the add-in PC Files installed on my machine and I am making new tries..&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;the problem seems to be that whenever i try to fix a local path (C:\desktop ... ) sas automatically append at the beginning of this path the following:&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;/sas/sw/config/Lev1/SASApp/ and consequently my path is not correct. seems like i am near to the solution but i'm sure there is a much simpler way to do it now that I have this PC Files installed on, maybe some initial setting modification ?&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;I keep on making tries.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;thanks for any help,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;Jacopo&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Dec 2014 09:46:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-to-export-a-sas-EG-5-1-table-to-excel2007-using-code-and-not/m-p/89714#M25600</guid>
      <dc:creator>j4copo</dc:creator>
      <dc:date>2014-12-17T09:46:50Z</dc:date>
    </item>
    <item>
      <title>Re: How to export a sas (EG 5.1) table to excel2007 using code (and not a wizard)</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-to-export-a-sas-EG-5-1-table-to-excel2007-using-code-and-not/m-p/89715#M25601</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;This is a UNIX path and it's likely where your SAS session on the server gets started from:&amp;nbsp; /sas/sw/config/Lev1/SASApp/&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;This is a Windows path which I assume relates to your local workstation where SAS EG is installed: &lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;C:\desktop ..&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;SAS EG is the client. The EG Import &amp;amp; Export Wizards allow you to do stuff on the client side. Everything else runs on the server side. Writing Excel output via SAS code executes on the SAS server - and it must be a path to a directory known to the Server. And that's why c:\desktop... will not work.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;The following link should be helpful to you&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;A href="http://blogs.sas.com/content/sasdummy/2012/02/11/export-excel-methods/" title="http://blogs.sas.com/content/sasdummy/2012/02/11/export-excel-methods/"&gt; How do I export from SAS to Excel files: Let me count the ways - The SAS Dummy&lt;/A&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Dec 2014 10:08:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-to-export-a-sas-EG-5-1-table-to-excel2007-using-code-and-not/m-p/89715#M25601</guid>
      <dc:creator>Patrick</dc:creator>
      <dc:date>2014-12-17T10:08:59Z</dc:date>
    </item>
    <item>
      <title>Re: How to export a sas (EG 5.1) table to excel2007 using code (and not a wizard)</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-to-export-a-sas-EG-5-1-table-to-excel2007-using-code-and-not/m-p/89716#M25602</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm transitioning from PC-SAS to SAS EG.&amp;nbsp; It seems that I'm getting the same error. I then get an error "insufficient authorization to access /sas/bin..."&amp;nbsp; What is the workaround for SAS EG?&amp;nbsp; Also, is there an alternative SAS program that's more closely related to PC-SAS?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Jul 2015 16:50:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-to-export-a-sas-EG-5-1-table-to-excel2007-using-code-and-not/m-p/89716#M25602</guid>
      <dc:creator>JamBar</dc:creator>
      <dc:date>2015-07-17T16:50:36Z</dc:date>
    </item>
    <item>
      <title>Re: How to export a sas (EG 5.1) table to excel2007 using code (and not a wizard)</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-to-export-a-sas-EG-5-1-table-to-excel2007-using-code-and-not/m-p/89717#M25603</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That error is because you are using an Unix server not Windows and the current directory is set wrong by SAS and your IT staff did not correct that. &lt;A href="http://support.sas.com/kb/50/345.html" title="http://support.sas.com/kb/50/345.html"&gt;50345 - Changing the current working directory for the SAS® Workspace Server&lt;/A&gt;&lt;/P&gt;&lt;P&gt;You can still use the proc export creating an excel file on UNIX &lt;A href="http://support.sas.com/documentation/cdl/en/acpcref/67382/HTML/default/viewer.htm#p1d0tocg3njhmfn1d4ld2covlwm0.htm" title="http://support.sas.com/documentation/cdl/en/acpcref/67382/HTML/default/viewer.htm#p1d0tocg3njhmfn1d4ld2covlwm0.htm"&gt;SAS/ACCESS(R) 9.4 Interface to PC Files: Reference, Third Edition&lt;/A&gt; The trick is using the XLSX option for the DBMS name. See the table what is working on Windows and what on Unix.&lt;/P&gt;&lt;P&gt;The XLSX option for the libname is new for 9.4 the export/import already do have them with 9.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The ods tagset can generate a xml-file that is what it does and Excel can read that. The compression of the data can be problematic (sizing network).&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Jul 2015 17:47:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-to-export-a-sas-EG-5-1-table-to-excel2007-using-code-and-not/m-p/89717#M25603</guid>
      <dc:creator>jakarman</dc:creator>
      <dc:date>2015-07-17T17:47:05Z</dc:date>
    </item>
  </channel>
</rss>

