<?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 Enterprise Guide</title>
    <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Proc-export-or-ODS-EXCEL/m-p/524009#M32765</link>
    <description>&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;This does all what you want&lt;/P&gt;&lt;PRE&gt;/*https://communities.sas.com/t5/SAS-Enterprise-Guide/Proc-export-or-ODS-EXCEL/m-p/523599#M32752*/&lt;BR /&gt;/* Importing sheet */&lt;BR /&gt;proc import file="/folders/myfolders/Excel/file1_01JAN2019.xlsx" out=work.test replace dbms=xlsx;&lt;BR /&gt;sheet="sheet1";&lt;BR /&gt;run;&lt;BR /&gt;proc import file="/folders/myfolders/Excel/file1_01JAN2019.xlsx" out=work.test2 replace dbms=xlsx;&lt;BR /&gt;sheet="sheet2";&lt;BR /&gt;run;&lt;BR /&gt;/* your code steps here*/&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;/*writing to sheets*/&lt;BR /&gt;ods excel file="/folders/myfolders/Excel/file2_01JAN2019.xlsx" options(sheet_interval=&lt;BR /&gt;"proc"&lt;BR /&gt;sheet_name="sheet1"&lt;BR /&gt;embedded_titles='on'&lt;BR /&gt;embedded_footnotes='on');&lt;BR /&gt;Footnote "Footer1";&lt;BR /&gt;proc print data=work.test noobs;&lt;BR /&gt;run;&lt;BR /&gt;&lt;BR /&gt;ods excel options (sheet_name="sheet2");&lt;BR /&gt;Footnote "Footer2";&lt;BR /&gt;proc print data=sashelp.class noobs;&lt;BR /&gt;run;&lt;BR /&gt;&lt;BR /&gt;ods excel close;&lt;/PRE&gt;</description>
    <pubDate>Tue, 01 Jan 2019 20:15:58 GMT</pubDate>
    <dc:creator>Sajid01</dc:creator>
    <dc:date>2019-01-01T20:15:58Z</dc:date>
    <item>
      <title>Proc export or ODS EXCEL</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Proc-export-or-ODS-EXCEL/m-p/523599#M32752</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;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;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;BR /&gt;I can do this using PROC EXPORT or ODS EXCEL.&lt;BR /&gt;but the challange im facing is&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 03:31:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Proc-export-or-ODS-EXCEL/m-p/523599#M32752</guid>
      <dc:creator>anjicam</dc:creator>
      <dc:date>2018-12-27T03:31:33Z</dc:date>
    </item>
    <item>
      <title>Re: Proc export or ODS EXCEL</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Proc-export-or-ODS-EXCEL/m-p/524009#M32765</link>
      <description>&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;This does all what you want&lt;/P&gt;&lt;PRE&gt;/*https://communities.sas.com/t5/SAS-Enterprise-Guide/Proc-export-or-ODS-EXCEL/m-p/523599#M32752*/&lt;BR /&gt;/* Importing sheet */&lt;BR /&gt;proc import file="/folders/myfolders/Excel/file1_01JAN2019.xlsx" out=work.test replace dbms=xlsx;&lt;BR /&gt;sheet="sheet1";&lt;BR /&gt;run;&lt;BR /&gt;proc import file="/folders/myfolders/Excel/file1_01JAN2019.xlsx" out=work.test2 replace dbms=xlsx;&lt;BR /&gt;sheet="sheet2";&lt;BR /&gt;run;&lt;BR /&gt;/* your code steps here*/&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;/*writing to sheets*/&lt;BR /&gt;ods excel file="/folders/myfolders/Excel/file2_01JAN2019.xlsx" options(sheet_interval=&lt;BR /&gt;"proc"&lt;BR /&gt;sheet_name="sheet1"&lt;BR /&gt;embedded_titles='on'&lt;BR /&gt;embedded_footnotes='on');&lt;BR /&gt;Footnote "Footer1";&lt;BR /&gt;proc print data=work.test noobs;&lt;BR /&gt;run;&lt;BR /&gt;&lt;BR /&gt;ods excel options (sheet_name="sheet2");&lt;BR /&gt;Footnote "Footer2";&lt;BR /&gt;proc print data=sashelp.class noobs;&lt;BR /&gt;run;&lt;BR /&gt;&lt;BR /&gt;ods excel close;&lt;/PRE&gt;</description>
      <pubDate>Tue, 01 Jan 2019 20:15:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Proc-export-or-ODS-EXCEL/m-p/524009#M32765</guid>
      <dc:creator>Sajid01</dc:creator>
      <dc:date>2019-01-01T20:15:58Z</dc:date>
    </item>
  </channel>
</rss>

