<?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 Updating the excel file and keeping the old tabs in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Updating-the-excel-file-and-keeping-the-old-tabs/m-p/288988#M59600</link>
    <description>&lt;P&gt;Hi ,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have to create one excel&amp;nbsp;&amp;nbsp; Femalelist._1 TABS A and B come&amp;nbsp;after running macro &amp;nbsp;sales2 and TABS&amp;nbsp;C and D come&amp;nbsp;after running macro &amp;nbsp;sales3&amp;nbsp;&amp;nbsp;BUT Femalelist._1&amp;nbsp; finally should have A,B,C,D tabs&amp;nbsp; in this locatio c:\myfiles but i ahve two files Femalelist._1 xlsx.xlsx&lt;/P&gt;&lt;P&gt;Femalelist._1.xlsx.xlsx but i want only one Femalelist._1 with all A,B,C, and D tabs&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;i am writing two proc export for macro1 and macro2&lt;/P&gt;&lt;P&gt;%macro sales2;&lt;/P&gt;&lt;P&gt;proc sql;&lt;/P&gt;&lt;P&gt;create table xy_&amp;amp;p. as&lt;/P&gt;&lt;P&gt;&amp;nbsp; select * from abb&lt;/P&gt;&lt;P&gt;where item_nm = "&amp;amp;desc."&lt;/P&gt;&lt;P&gt;proc export&lt;BR /&gt;data= xy_&amp;amp;p.&lt;BR /&gt;outfile= "c:\myfiles\Femalelist._&amp;amp;id.xlsx"&lt;BR /&gt;dbms= xlsx ;&lt;BR /&gt;SHEET="&amp;amp;desc";&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;%mend ;&lt;/P&gt;&lt;P&gt;%sales2;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;%macro sales3;&lt;/P&gt;&lt;P&gt;proc sql;&lt;/P&gt;&lt;P&gt;create table yg_&amp;amp;pq. as&lt;/P&gt;&lt;P&gt;&amp;nbsp; select * from ccd&lt;/P&gt;&lt;P&gt;where&amp;nbsp;ins_nm = "&amp;amp;name_des."&lt;/P&gt;&lt;P&gt;proc export&lt;BR /&gt;data= yg_&amp;amp;pq.&lt;BR /&gt;outfile= "c:\myfiles\Femalelist._&amp;amp;id.xlsx"&lt;BR /&gt;dbms= xlsx ;&lt;BR /&gt;SHEET= "&amp;amp;name_des."&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;%mend ;&lt;/P&gt;&lt;P&gt;%sales3;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 02 Aug 2016 18:40:00 GMT</pubDate>
    <dc:creator>jhh197</dc:creator>
    <dc:date>2016-08-02T18:40:00Z</dc:date>
    <item>
      <title>Updating the excel file and keeping the old tabs</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Updating-the-excel-file-and-keeping-the-old-tabs/m-p/288988#M59600</link>
      <description>&lt;P&gt;Hi ,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have to create one excel&amp;nbsp;&amp;nbsp; Femalelist._1 TABS A and B come&amp;nbsp;after running macro &amp;nbsp;sales2 and TABS&amp;nbsp;C and D come&amp;nbsp;after running macro &amp;nbsp;sales3&amp;nbsp;&amp;nbsp;BUT Femalelist._1&amp;nbsp; finally should have A,B,C,D tabs&amp;nbsp; in this locatio c:\myfiles but i ahve two files Femalelist._1 xlsx.xlsx&lt;/P&gt;&lt;P&gt;Femalelist._1.xlsx.xlsx but i want only one Femalelist._1 with all A,B,C, and D tabs&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;i am writing two proc export for macro1 and macro2&lt;/P&gt;&lt;P&gt;%macro sales2;&lt;/P&gt;&lt;P&gt;proc sql;&lt;/P&gt;&lt;P&gt;create table xy_&amp;amp;p. as&lt;/P&gt;&lt;P&gt;&amp;nbsp; select * from abb&lt;/P&gt;&lt;P&gt;where item_nm = "&amp;amp;desc."&lt;/P&gt;&lt;P&gt;proc export&lt;BR /&gt;data= xy_&amp;amp;p.&lt;BR /&gt;outfile= "c:\myfiles\Femalelist._&amp;amp;id.xlsx"&lt;BR /&gt;dbms= xlsx ;&lt;BR /&gt;SHEET="&amp;amp;desc";&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;%mend ;&lt;/P&gt;&lt;P&gt;%sales2;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;%macro sales3;&lt;/P&gt;&lt;P&gt;proc sql;&lt;/P&gt;&lt;P&gt;create table yg_&amp;amp;pq. as&lt;/P&gt;&lt;P&gt;&amp;nbsp; select * from ccd&lt;/P&gt;&lt;P&gt;where&amp;nbsp;ins_nm = "&amp;amp;name_des."&lt;/P&gt;&lt;P&gt;proc export&lt;BR /&gt;data= yg_&amp;amp;pq.&lt;BR /&gt;outfile= "c:\myfiles\Femalelist._&amp;amp;id.xlsx"&lt;BR /&gt;dbms= xlsx ;&lt;BR /&gt;SHEET= "&amp;amp;name_des."&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;%mend ;&lt;/P&gt;&lt;P&gt;%sales3;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 02 Aug 2016 18:40:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Updating-the-excel-file-and-keeping-the-old-tabs/m-p/288988#M59600</guid>
      <dc:creator>jhh197</dc:creator>
      <dc:date>2016-08-02T18:40:00Z</dc:date>
    </item>
    <item>
      <title>Re: Updating the excel file and keeping the old tabs</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Updating-the-excel-file-and-keeping-the-old-tabs/m-p/289083#M59606</link>
      <description>&lt;P&gt;Try changing dbms&amp;nbsp;statement as : &amp;nbsp; &amp;nbsp;&lt;SPAN&gt;dbms= xlsx REPLACE ;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 03 Aug 2016 02:02:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Updating-the-excel-file-and-keeping-the-old-tabs/m-p/289083#M59606</guid>
      <dc:creator>GaneshLekurwale</dc:creator>
      <dc:date>2016-08-03T02:02:41Z</dc:date>
    </item>
    <item>
      <title>Re: Updating the excel file and keeping the old tabs</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Updating-the-excel-file-and-keeping-the-old-tabs/m-p/289111#M59608</link>
      <description>Perhaps you could get it to work with proc export. &lt;BR /&gt;But spontaneously i would try the Excel libname engine for this scenario.</description>
      <pubDate>Wed, 03 Aug 2016 06:50:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Updating-the-excel-file-and-keeping-the-old-tabs/m-p/289111#M59608</guid>
      <dc:creator>LinusH</dc:creator>
      <dc:date>2016-08-03T06:50:22Z</dc:date>
    </item>
  </channel>
</rss>

