<?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 OR ODS EXCEL in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/PROC-EXPORT-OR-ODS-EXCEL/m-p/523657#M142284</link>
    <description>&lt;P&gt;Hi:&lt;BR /&gt; But you said that sheet one is not really empty -- it has the variable names, correct? Are the variable names in row 1? Then sheet 2 has the "real" data. Since you are using SAS 9.4 M2, I would recommend using ODS EXCEL. You'll have to write code to do what you want to do.&lt;BR /&gt;Cynthia&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This is what I envision you are describing:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="two_sheet_output.png" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/25894iBE45AF7A05FE11E2/image-size/large?v=v2&amp;amp;px=999" role="button" title="two_sheet_output.png" alt="two_sheet_output.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The above output was generated with this code:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="two_sheet_code.png" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/25895i01934D48405ADECC/image-size/large?v=v2&amp;amp;px=999" role="button" title="two_sheet_code.png" alt="two_sheet_code.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 27 Dec 2018 16:30:44 GMT</pubDate>
    <dc:creator>Cynthia_sas</dc:creator>
    <dc:date>2018-12-27T16:30:44Z</dc:date>
    <item>
      <title>PROC EXPORT OR ODS EXCEL</title>
      <link>https://communities.sas.com/t5/SAS-Programming/PROC-EXPORT-OR-ODS-EXCEL/m-p/523600#M142262</link>
      <description>&lt;P&gt;Hi Everyone! Below is one of the challenge im facing now.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;U&gt;&lt;STRONG&gt;Existing scenario:&lt;/STRONG&gt;&lt;/U&gt;&lt;BR /&gt;There is Excel template file placed in common folder. This template file contains two sheets (sheet1, sheet2).&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;BR /&gt;Both the sheets contains only Variable Names but no records. Also this Template sheet have Footer information which will be displayed only when we do PRINT PREVIEW of excel.&lt;/P&gt;&lt;P&gt;Current SAS Code using DDE concept and this template file, writes work dataset data to 2nd sheet of template (not in Sheet1)&lt;BR /&gt;After exporting SAS data to excel using above DDE concept, this file will be stored to another Folder with another name with datestamp.&lt;/P&gt;&lt;P&gt;Now the output excel file contains&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;BR /&gt;two sheets ( sheet1 - only variables ,no data ; Sheet2 - both variables and data records) .&lt;BR /&gt;Also contains Footer information.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;U&gt;Expected Scenario:&lt;/U&gt;&lt;/STRONG&gt;&lt;BR /&gt;I need to achieve above scenario without USING DDE CONCEPT &lt;U&gt;&lt;STRONG&gt;in SAS ENTERPRISE GUIDE (&lt;/STRONG&gt;&lt;/U&gt;&lt;STRONG&gt;version: 9.04.01M2P07232014)&lt;/STRONG&gt;&lt;BR /&gt;I can do this using PROC EXPORT or ODS EXCEL.&lt;BR /&gt;but the challange im facing is&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;BR /&gt;1) In PROC EXPORT, i can export empty dataset data to sheet1 and data to sheet2 BUT i cant include/define FOOTER information.&lt;BR /&gt;2) In ODS EXCEL, i can include/define FOOTER information BUT i can't export empty dataset data to sheet1.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;HOW TO ACHIEVE THIS. PLEASE HELP ME&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 27 Dec 2018 09:23:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/PROC-EXPORT-OR-ODS-EXCEL/m-p/523600#M142262</guid>
      <dc:creator>anjicam</dc:creator>
      <dc:date>2018-12-27T09:23:47Z</dc:date>
    </item>
    <item>
      <title>Re: PROC EXPORT OR ODS EXCEL</title>
      <link>https://communities.sas.com/t5/SAS-Programming/PROC-EXPORT-OR-ODS-EXCEL/m-p/523606#M142265</link>
      <description>&lt;P&gt;What version of SAS are you using? Option 2 should work with the latest version, but that may be 9.4 M6.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;But you can also export your data to a template file that already has the footnote/titles you need or use VB to add it after the fact. T&lt;/P&gt;</description>
      <pubDate>Thu, 27 Dec 2018 04:53:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/PROC-EXPORT-OR-ODS-EXCEL/m-p/523606#M142265</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2018-12-27T04:53:02Z</dc:date>
    </item>
    <item>
      <title>Re: PROC EXPORT OR ODS EXCEL</title>
      <link>https://communities.sas.com/t5/SAS-Programming/PROC-EXPORT-OR-ODS-EXCEL/m-p/523621#M142271</link>
      <description>&lt;P&gt;Hi, i m using&amp;nbsp;&lt;U&gt;&lt;STRONG&gt;SAS ENTERPRISE GUIDE (&lt;/STRONG&gt;&lt;/U&gt;&lt;STRONG&gt;version: 9.04.01M2P07232014)&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 27 Dec 2018 09:25:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/PROC-EXPORT-OR-ODS-EXCEL/m-p/523621#M142271</guid>
      <dc:creator>anjicam</dc:creator>
      <dc:date>2018-12-27T09:25:59Z</dc:date>
    </item>
    <item>
      <title>Re: PROC EXPORT OR ODS EXCEL</title>
      <link>https://communities.sas.com/t5/SAS-Programming/PROC-EXPORT-OR-ODS-EXCEL/m-p/523657#M142284</link>
      <description>&lt;P&gt;Hi:&lt;BR /&gt; But you said that sheet one is not really empty -- it has the variable names, correct? Are the variable names in row 1? Then sheet 2 has the "real" data. Since you are using SAS 9.4 M2, I would recommend using ODS EXCEL. You'll have to write code to do what you want to do.&lt;BR /&gt;Cynthia&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This is what I envision you are describing:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="two_sheet_output.png" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/25894iBE45AF7A05FE11E2/image-size/large?v=v2&amp;amp;px=999" role="button" title="two_sheet_output.png" alt="two_sheet_output.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The above output was generated with this code:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="two_sheet_code.png" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/25895i01934D48405ADECC/image-size/large?v=v2&amp;amp;px=999" role="button" title="two_sheet_code.png" alt="two_sheet_code.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 27 Dec 2018 16:30:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/PROC-EXPORT-OR-ODS-EXCEL/m-p/523657#M142284</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2018-12-27T16:30:44Z</dc:date>
    </item>
    <item>
      <title>Re: PROC EXPORT OR ODS EXCEL</title>
      <link>https://communities.sas.com/t5/SAS-Programming/PROC-EXPORT-OR-ODS-EXCEL/m-p/523679#M142297</link>
      <description>Thank you Cynthia. thank you somuch.</description>
      <pubDate>Thu, 27 Dec 2018 17:55:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/PROC-EXPORT-OR-ODS-EXCEL/m-p/523679#M142297</guid>
      <dc:creator>anjicam</dc:creator>
      <dc:date>2018-12-27T17:55:43Z</dc:date>
    </item>
    <item>
      <title>Re: PROC EXPORT OR ODS EXCEL</title>
      <link>https://communities.sas.com/t5/SAS-Programming/PROC-EXPORT-OR-ODS-EXCEL/m-p/523682#M142298</link>
      <description>Thanks for the answer. Could you please also tell how to have gridlines instead of whited out all the remaining rows n columns</description>
      <pubDate>Thu, 27 Dec 2018 18:13:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/PROC-EXPORT-OR-ODS-EXCEL/m-p/523682#M142298</guid>
      <dc:creator>anjicam</dc:creator>
      <dc:date>2018-12-27T18:13:42Z</dc:date>
    </item>
    <item>
      <title>Re: PROC EXPORT OR ODS EXCEL</title>
      <link>https://communities.sas.com/t5/SAS-Programming/PROC-EXPORT-OR-ODS-EXCEL/m-p/523702#M142308</link>
      <description>Hi:&lt;BR /&gt;  I think there's a suboption to turn gridlines on INSIDE the table, if that's what you're referring to. &lt;BR /&gt;&lt;BR /&gt;However, if you are referring to the fact that the gridlines outside of the table do not show, I believe that is Excel using the background from the style overlaid on top of the gridlines. If you want to make the background go away, I believe you need to change the style template. &lt;BR /&gt;&lt;BR /&gt;Or, if you truly only want the data without ANY style (colors or fonts) at all, then move to PROC EXPORT or LIBNAME XLSX methods of getting your data from SAS into Excel.&lt;BR /&gt;Cynthia</description>
      <pubDate>Thu, 27 Dec 2018 20:09:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/PROC-EXPORT-OR-ODS-EXCEL/m-p/523702#M142308</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2018-12-27T20:09:30Z</dc:date>
    </item>
  </channel>
</rss>

