<?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 excel cells from sas-proc sql in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Updating-excel-cells-from-sas-proc-sql/m-p/115785#M23855</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi..i want to update specific excel cells from sas using Proc sql..is it possible??&lt;/P&gt;&lt;P&gt;if yes, i need to update range of excel values using proc sql...i dont want to use SAS-DDE..means dont want to open excel file from sas..rather i just&amp;nbsp; can connect to excel through proc sql...&lt;/P&gt;&lt;P&gt;finally am struggling to how to give range of excel cell in proc sql to so that i can put data in excel from sas..?ls&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 08 Sep 2012 18:03:46 GMT</pubDate>
    <dc:creator>RaviSPR</dc:creator>
    <dc:date>2012-09-08T18:03:46Z</dc:date>
    <item>
      <title>Updating excel cells from sas-proc sql</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Updating-excel-cells-from-sas-proc-sql/m-p/115785#M23855</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi..i want to update specific excel cells from sas using Proc sql..is it possible??&lt;/P&gt;&lt;P&gt;if yes, i need to update range of excel values using proc sql...i dont want to use SAS-DDE..means dont want to open excel file from sas..rather i just&amp;nbsp; can connect to excel through proc sql...&lt;/P&gt;&lt;P&gt;finally am struggling to how to give range of excel cell in proc sql to so that i can put data in excel from sas..?ls&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 08 Sep 2012 18:03:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Updating-excel-cells-from-sas-proc-sql/m-p/115785#M23855</guid>
      <dc:creator>RaviSPR</dc:creator>
      <dc:date>2012-09-08T18:03:46Z</dc:date>
    </item>
    <item>
      <title>Re: Updating excel cells from sas-proc sql</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Updating-excel-cells-from-sas-proc-sql/m-p/115786#M23856</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can create library and map this excel file in the library. Further, you can modify once the datasheets are visible as datasets using PROC SQL.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 08 Sep 2012 18:54:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Updating-excel-cells-from-sas-proc-sql/m-p/115786#M23856</guid>
      <dc:creator>bnarang</dc:creator>
      <dc:date>2012-09-08T18:54:43Z</dc:date>
    </item>
    <item>
      <title>Re: Updating excel cells from sas-proc sql</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Updating-excel-cells-from-sas-proc-sql/m-p/115787#M23857</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;As above said.&lt;/P&gt;&lt;P&gt;Once you assign a libname to the excel file successfully, You can modify cell like a sas dataset.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;libname x excel 'D:\x.xls' scantext=no;&lt;/P&gt;&lt;P&gt;proc sql;&lt;/P&gt;&lt;P&gt;update x.'Sheet1$'n&lt;/P&gt;&lt;P&gt; set _col0='xxx'&lt;/P&gt;&lt;P&gt;&amp;nbsp; where _col2='my condition';&lt;/P&gt;&lt;P&gt;&amp;nbsp; quit;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ksharp&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Sep 2012 05:11:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Updating-excel-cells-from-sas-proc-sql/m-p/115787#M23857</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2012-09-10T05:11:32Z</dc:date>
    </item>
    <item>
      <title>Re: Updating excel cells from sas-proc sql</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Updating-excel-cells-from-sas-proc-sql/m-p/115788#M23858</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank-You...&lt;/P&gt;&lt;P&gt;i think we need to use Named range also in the excel files.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Sep 2012 17:25:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Updating-excel-cells-from-sas-proc-sql/m-p/115788#M23858</guid>
      <dc:creator>RaviSPR</dc:creator>
      <dc:date>2012-09-10T17:25:39Z</dc:date>
    </item>
    <item>
      <title>Re: Updating excel cells from sas-proc sql</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Updating-excel-cells-from-sas-proc-sql/m-p/115789#M23859</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks a lot...&lt;/P&gt;&lt;P&gt;yes. its correct.&lt;/P&gt;&lt;P&gt;i got a way to write data to specific excel cells.But am getting variable names into the xl file those i dont want.&lt;/P&gt;&lt;P&gt;below is the code.&lt;/P&gt;&lt;P&gt;Here namedrng1 is the Named range in the excel file contains specific cells in a sheet.&lt;/P&gt;&lt;P&gt;Libname xl excel "Path";&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Data xl.namedrng1;&lt;/P&gt;&lt;P&gt;set work.emp;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;here am getting columns names into xl file..is there any way to remove sas dataset's(work.emp) column names?&lt;/P&gt;&lt;P&gt;I can hide these columns in the excel file...BUT....still....????&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;SPR.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Sep 2012 17:33:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Updating-excel-cells-from-sas-proc-sql/m-p/115789#M23859</guid>
      <dc:creator>RaviSPR</dc:creator>
      <dc:date>2012-09-10T17:33:52Z</dc:date>
    </item>
    <item>
      <title>Re: Updating excel cells from sas-proc sql</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Updating-excel-cells-from-sas-proc-sql/m-p/115790#M23860</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If your excel file is in english, try to use XLS engine.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc export data=sashelp.class outfile='c:\want.xls' replace dbms=xls;&lt;/P&gt;&lt;P&gt;putnames=no;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ksharp&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Sep 2012 02:43:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Updating-excel-cells-from-sas-proc-sql/m-p/115790#M23860</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2012-09-11T02:43:17Z</dc:date>
    </item>
    <item>
      <title>Re: Updating excel cells from sas-proc sql</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Updating-excel-cells-from-sas-proc-sql/m-p/115791#M23861</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry Ksharp. if we use proc export we cant write data to required cell ranges in the excel...!! right??&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;is any further add-ons for my code which i mentioned above.i.e Libname and Proc SQL connect to excel, to eliminate column names while writing data into the cell ranges??&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks a lot.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Sep 2012 06:29:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Updating-excel-cells-from-sas-proc-sql/m-p/115791#M23861</guid>
      <dc:creator>RaviSPR</dc:creator>
      <dc:date>2012-09-11T06:29:25Z</dc:date>
    </item>
    <item>
      <title>Re: Updating excel cells from sas-proc sql</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Updating-excel-cells-from-sas-proc-sql/m-p/115792#M23862</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;My SQL 's update statement will not get extra variable name . Did you try it ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Sep 2012 07:10:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Updating-excel-cells-from-sas-proc-sql/m-p/115792#M23862</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2012-09-11T07:10:03Z</dc:date>
    </item>
    <item>
      <title>Re: Updating excel cells from sas-proc sql</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Updating-excel-cells-from-sas-proc-sql/m-p/115793#M23863</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;But your code writes the data by checking condition with the excel cell values.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Actually, i want to write/export data which is coming from sas datasteps. so, i cant check the conditions with the values presented in the excel.&lt;/P&gt;&lt;P&gt;i.e its entirely new data for the new month which should be written to excel excel cell ranges.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The problem here is unwanted column ranges..But for time being i am hiding those columns in the template file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;SPR.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Sep 2012 17:45:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Updating-excel-cells-from-sas-proc-sql/m-p/115793#M23863</guid>
      <dc:creator>RaviSPR</dc:creator>
      <dc:date>2012-09-11T17:45:14Z</dc:date>
    </item>
  </channel>
</rss>

