<?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 Replace the same excel output by using same template with new data in proc datasets in New SAS User</title>
    <link>https://communities.sas.com/t5/New-SAS-User/Replace-the-same-excel-output-by-using-same-template-with-new/m-p/519389#M3782</link>
    <description>&lt;P&gt;how to replace the same excel template output with new data but the columns has been increased in the new datasets.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;refer the below code:&lt;/P&gt;&lt;P&gt;libname _ibxls 'c:\path\libname.xlsx';&lt;/P&gt;&lt;P&gt;proc datasets lib=_ibxls;&lt;/P&gt;&lt;P&gt;delete data;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc datasets lib=_ibxls;&lt;/P&gt;&lt;P&gt;delete 'data'$n ;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;proc append base=_ibxls.data data=abc;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;libname _ibxls clear;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;my excel sheet had 2 columns and I have delete the data present in the sheet that has to be replaced with the new data.in my new dataset have&amp;nbsp; 5 column .how&amp;nbsp;do we &amp;nbsp;achieve the same templates for theses addition columns using above mentioned code.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Request you to please help me.&lt;/P&gt;</description>
    <pubDate>Fri, 07 Dec 2018 10:44:11 GMT</pubDate>
    <dc:creator>rinsabraham</dc:creator>
    <dc:date>2018-12-07T10:44:11Z</dc:date>
    <item>
      <title>Replace the same excel output by using same template with new data in proc datasets</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Replace-the-same-excel-output-by-using-same-template-with-new/m-p/519389#M3782</link>
      <description>&lt;P&gt;how to replace the same excel template output with new data but the columns has been increased in the new datasets.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;refer the below code:&lt;/P&gt;&lt;P&gt;libname _ibxls 'c:\path\libname.xlsx';&lt;/P&gt;&lt;P&gt;proc datasets lib=_ibxls;&lt;/P&gt;&lt;P&gt;delete data;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc datasets lib=_ibxls;&lt;/P&gt;&lt;P&gt;delete 'data'$n ;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;proc append base=_ibxls.data data=abc;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;libname _ibxls clear;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;my excel sheet had 2 columns and I have delete the data present in the sheet that has to be replaced with the new data.in my new dataset have&amp;nbsp; 5 column .how&amp;nbsp;do we &amp;nbsp;achieve the same templates for theses addition columns using above mentioned code.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Request you to please help me.&lt;/P&gt;</description>
      <pubDate>Fri, 07 Dec 2018 10:44:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Replace-the-same-excel-output-by-using-same-template-with-new/m-p/519389#M3782</guid>
      <dc:creator>rinsabraham</dc:creator>
      <dc:date>2018-12-07T10:44:11Z</dc:date>
    </item>
    <item>
      <title>Re: Replace the same excel output by using same template with new data in proc datasets</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Replace-the-same-excel-output-by-using-same-template-with-new/m-p/519393#M3783</link>
      <description>&lt;P&gt;I don't think it is possible.&amp;nbsp; If your using a range in an Excel file, then the data output needs to match that range.&amp;nbsp; If you have to fit into your Excel template something which does not fit into that template...&lt;/P&gt;
&lt;P&gt;All I can suggest is you update your Excel template's range to be big enough to handle any now or future additional areas, or find some other way to process the data as it comes in.&amp;nbsp; One way is to dump SAS data out to an Excel file, and then have your template file run some VBA code to pull that data into itself.&lt;/P&gt;</description>
      <pubDate>Fri, 07 Dec 2018 11:51:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Replace-the-same-excel-output-by-using-same-template-with-new/m-p/519393#M3783</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2018-12-07T11:51:27Z</dc:date>
    </item>
  </channel>
</rss>

