<?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: Move Data from SAS to specific cells in Excel in ODS and Base Reporting</title>
    <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Move-Data-from-SAS-to-specific-cells-in-Excel/m-p/756133#M25151</link>
    <description>&lt;P&gt;Hi Reeza,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you so much it helped .&lt;/P&gt;</description>
    <pubDate>Fri, 23 Jul 2021 06:48:29 GMT</pubDate>
    <dc:creator>jhh197</dc:creator>
    <dc:date>2021-07-23T06:48:29Z</dc:date>
    <item>
      <title>Move Data from SAS to specific cells in Excel</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Move-Data-from-SAS-to-specific-cells-in-Excel/m-p/756027#M25136</link>
      <description>&lt;P&gt;Hi ,&lt;/P&gt;&lt;P&gt;I have a SAS Dataset&amp;nbsp; summary_details&amp;nbsp;&amp;nbsp; which looks like below and I want that dataset to export to specific cells in Excel (c17 to d17 : c20 to d20)&lt;/P&gt;&lt;P&gt;with a specific sheet name (Test60) how do it do that ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;SAS Dataset&lt;/P&gt;&lt;P&gt;Summary_details&lt;/P&gt;&lt;P&gt;_NAME_&amp;nbsp;&amp;nbsp;&amp;nbsp; COL1&lt;/P&gt;&lt;P&gt;IP_SUM&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 10&lt;/P&gt;&lt;P&gt;CV_SUM&amp;nbsp;&amp;nbsp;&amp;nbsp; 20&lt;/P&gt;&lt;P&gt;RS_SUM&amp;nbsp;&amp;nbsp;&amp;nbsp; 30&lt;/P&gt;&lt;P&gt;I want above SAS Dataset&amp;nbsp;to be in&amp;nbsp;C17&amp;nbsp;to d17 and c20 to d20 &amp;nbsp;in excel&amp;nbsp; and sheet name should be Test 60 . How do I make above data to fall into specific cells in excel . Can anyone please help ?&lt;/P&gt;&lt;DIV class="mceNonEditable lia-copypaste-placeholder"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;P&gt;IP_SUM&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 10&lt;/P&gt;&lt;P&gt;CV_SUM&amp;nbsp;&amp;nbsp;&amp;nbsp; 20&lt;/P&gt;&lt;P&gt;RS_SUM&amp;nbsp;&amp;nbsp;&amp;nbsp; 30&lt;/P&gt;&lt;DIV class="mceNonEditable lia-copypaste-placeholder"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 22 Jul 2021 19:42:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Move-Data-from-SAS-to-specific-cells-in-Excel/m-p/756027#M25136</guid>
      <dc:creator>jhh197</dc:creator>
      <dc:date>2021-07-22T19:42:12Z</dc:date>
    </item>
    <item>
      <title>Re: Move Data from SAS to specific cells in Excel</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Move-Data-from-SAS-to-specific-cells-in-Excel/m-p/756029#M25137</link>
      <description>Is this going to an already existing Excel file? A brand new file? Are header rows allowed? &lt;BR /&gt;If it's a new Excel file and header rows are allowed this is trivial. If it's an existing file, and header rows are allowed it's doable. &lt;BR /&gt;</description>
      <pubDate>Thu, 22 Jul 2021 19:45:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Move-Data-from-SAS-to-specific-cells-in-Excel/m-p/756029#M25137</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2021-07-22T19:45:23Z</dc:date>
    </item>
    <item>
      <title>Re: Move Data from SAS to specific cells in Excel</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Move-Data-from-SAS-to-specific-cells-in-Excel/m-p/756036#M25138</link>
      <description>&lt;P&gt;Hi Reeza ,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Excel file is not existing already . It is a new excel file and header rows meaning _NAME_ and Col1 not allowed . But if its not possible I can create one empty excel file within the SAS folder .&lt;/P&gt;</description>
      <pubDate>Thu, 22 Jul 2021 20:21:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Move-Data-from-SAS-to-specific-cells-in-Excel/m-p/756036#M25138</guid>
      <dc:creator>jhh197</dc:creator>
      <dc:date>2021-07-22T20:21:43Z</dc:date>
    </item>
    <item>
      <title>Re: Move Data from SAS to specific cells in Excel</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Move-Data-from-SAS-to-specific-cells-in-Excel/m-p/756041#M25139</link>
      <description>I'd probably make my first row my variable labels in this case and export using ODS EXCEL. Possible, yes. Works, yes. Great solution, No.</description>
      <pubDate>Thu, 22 Jul 2021 20:45:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Move-Data-from-SAS-to-specific-cells-in-Excel/m-p/756041#M25139</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2021-07-22T20:45:19Z</dc:date>
    </item>
    <item>
      <title>Re: Move Data from SAS to specific cells in Excel</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Move-Data-from-SAS-to-specific-cells-in-Excel/m-p/756043#M25140</link>
      <description>&lt;P&gt;Then How to I move data to specific cells in existing Excel . Can you please help&lt;/P&gt;</description>
      <pubDate>Thu, 22 Jul 2021 20:48:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Move-Data-from-SAS-to-specific-cells-in-Excel/m-p/756043#M25140</guid>
      <dc:creator>jhh197</dc:creator>
      <dc:date>2021-07-22T20:48:45Z</dc:date>
    </item>
    <item>
      <title>Re: Move Data from SAS to specific cells in Excel</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Move-Data-from-SAS-to-specific-cells-in-Excel/m-p/756046#M25141</link>
      <description>&lt;P&gt;You will need to use DDE approach for this. I don't have a perfect solution because you need to create an empty excel file(test_excel) at any location first with sheet1 renamed to Test60. Then you can use following code. There is sleep function to give time to Excel for loading.. after 5 seconds or so you will see the data in your excel file in given cells.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;options noxwait noxsync;
x '"H:\test_excel.xlsx"';

/* Sleep for 5 seconds to give */
/* Excel time to start up.   */

data _null_;
   x=sleep(5);
run;

data one;
input _NAME_ $ COL1;
datalines;
IP_SUM 10
CV_SUM 20
RS_SUM 30
;
run;

/* The DDE link is established using   */

filename data dde 'excel|Test60!r17c3:r20c4'; /*Your cell range*/
data two;
 set one;
   file data;
   put _NAME_ COL1;
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 22 Jul 2021 21:00:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Move-Data-from-SAS-to-specific-cells-in-Excel/m-p/756046#M25141</guid>
      <dc:creator>Rydhm</dc:creator>
      <dc:date>2021-07-22T21:00:13Z</dc:date>
    </item>
    <item>
      <title>Re: Move Data from SAS to specific cells in Excel</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Move-Data-from-SAS-to-specific-cells-in-Excel/m-p/756051#M25142</link>
      <description>&lt;P&gt;DDE will only work if SAS runs on your PC. If you are running on a remote SAS server then you can't use this method.&lt;/P&gt;</description>
      <pubDate>Thu, 22 Jul 2021 21:11:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Move-Data-from-SAS-to-specific-cells-in-Excel/m-p/756051#M25142</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2021-07-22T21:11:04Z</dc:date>
    </item>
    <item>
      <title>Re: Move Data from SAS to specific cells in Excel</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Move-Data-from-SAS-to-specific-cells-in-Excel/m-p/756052#M25143</link>
      <description>&lt;P&gt;DDE is a massive security risk and Excel locked it down in early 2020. You can unlock it though - you may want to run that by your security team. &lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ods excel file ='/home/fkhurshed/demo.xlsx' options(starts_at="17,3", sheet_name = "test60");
proc print data=have (firstobs=2);
label _name_ = "IP_SUM";
label COL1 = "10";
run;
ods excel close;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/389527"&gt;@Rydhm&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;You will need to use DDE approach for this. I don't have a perfect solution because you need to create an empty excel file(test_excel) at any location first with sheet1 renamed to Test60. Then you can use following code. There is sleep function to give time to Excel for loading.. after 5 seconds or so you will see the data in your excel file in given cells.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;options noxwait noxsync;
x '"H:\test_excel.xlsx"';

/* Sleep for 5 seconds to give */
/* Excel time to start up.   */

data _null_;
   x=sleep(5);
run;

data one;
input _NAME_ $ COL1;
datalines;
IP_SUM 10
CV_SUM 20
RS_SUM 30
;
run;

/* The DDE link is established using   */

filename data dde 'excel|Test60!r17c3:r20c4'; /*Your cell range*/
data two;
 set one;
   file data;
   put _NAME_ COL1;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 22 Jul 2021 21:16:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Move-Data-from-SAS-to-specific-cells-in-Excel/m-p/756052#M25143</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2021-07-22T21:16:20Z</dc:date>
    </item>
    <item>
      <title>Re: Move Data from SAS to specific cells in Excel</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Move-Data-from-SAS-to-specific-cells-in-Excel/m-p/756053#M25144</link>
      <description>&lt;P&gt;Hi Reeza,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there any other option if SAS is on Citrix&lt;/P&gt;</description>
      <pubDate>Thu, 22 Jul 2021 21:16:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Move-Data-from-SAS-to-specific-cells-in-Excel/m-p/756053#M25144</guid>
      <dc:creator>jhh197</dc:creator>
      <dc:date>2021-07-22T21:16:28Z</dc:date>
    </item>
    <item>
      <title>Re: Move Data from SAS to specific cells in Excel</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Move-Data-from-SAS-to-specific-cells-in-Excel/m-p/756054#M25145</link>
      <description>I will try this code Reeza Thank you for help</description>
      <pubDate>Thu, 22 Jul 2021 21:20:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Move-Data-from-SAS-to-specific-cells-in-Excel/m-p/756054#M25145</guid>
      <dc:creator>jhh197</dc:creator>
      <dc:date>2021-07-22T21:20:36Z</dc:date>
    </item>
    <item>
      <title>Re: Move Data from SAS to specific cells in Excel</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Move-Data-from-SAS-to-specific-cells-in-Excel/m-p/756058#M25146</link>
      <description>&lt;P&gt;great approach!&lt;/P&gt;&lt;P&gt;Just why not use proc report with noheader instead of proc print?&lt;/P&gt;</description>
      <pubDate>Thu, 22 Jul 2021 21:30:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Move-Data-from-SAS-to-specific-cells-in-Excel/m-p/756058#M25146</guid>
      <dc:creator>Rydhm</dc:creator>
      <dc:date>2021-07-22T21:30:50Z</dc:date>
    </item>
    <item>
      <title>Re: Move Data from SAS to specific cells in Excel</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Move-Data-from-SAS-to-specific-cells-in-Excel/m-p/756061#M25147</link>
      <description>Because I didn't know that was an option  &lt;span class="lia-unicode-emoji" title=":grinning_face_with_smiling_eyes:"&gt;😄&lt;/span&gt; &lt;BR /&gt;I concur, ODS EXCEL + PROC REPORT with NOHEADER is a better option than the label.</description>
      <pubDate>Thu, 22 Jul 2021 21:35:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Move-Data-from-SAS-to-specific-cells-in-Excel/m-p/756061#M25147</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2021-07-22T21:35:37Z</dc:date>
    </item>
    <item>
      <title>Re: Move Data from SAS to specific cells in Excel</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Move-Data-from-SAS-to-specific-cells-in-Excel/m-p/756094#M25148</link>
      <description>Hi Reeza ,&lt;BR /&gt;Thank you for all your help . I have tried above code . But I am getting the results in Q3 because we gave starts_at 17 in code . But how do I get results at C15 . Can you please help .&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Thank you so much</description>
      <pubDate>Thu, 22 Jul 2021 23:04:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Move-Data-from-SAS-to-specific-cells-in-Excel/m-p/756094#M25148</guid>
      <dc:creator>jhh197</dc:creator>
      <dc:date>2021-07-22T23:04:05Z</dc:date>
    </item>
    <item>
      <title>Re: Move Data from SAS to specific cells in Excel</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Move-Data-from-SAS-to-specific-cells-in-Excel/m-p/756099#M25149</link>
      <description>Have you tried changing the values in STARTS_AT so that it's C15? That would be Row 15, Col 3. Q3 is col 15, row 3. I'm sure you can figure it out from there.</description>
      <pubDate>Thu, 22 Jul 2021 23:44:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Move-Data-from-SAS-to-specific-cells-in-Excel/m-p/756099#M25149</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2021-07-22T23:44:52Z</dc:date>
    </item>
    <item>
      <title>Re: Move Data from SAS to specific cells in Excel</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Move-Data-from-SAS-to-specific-cells-in-Excel/m-p/756109#M25150</link>
      <description>&lt;P&gt;Hi Reeza ,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you so much . It worked &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; . But I get output like below how&amp;nbsp;do&amp;nbsp;&amp;nbsp;I change code so that I don't get obs , _NAME_ and Col1 and just get the records to excel . Can you please help .&lt;/P&gt;&lt;TABLE border="0" cellspacing="0" cellpadding="0"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;STRONG&gt;&lt;FONT face="Albany AMT" size="2" color="#112277"&gt;Obs&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD&gt;&lt;STRONG&gt;&lt;FONT face="Albany AMT" size="2" color="#112277"&gt;_NAME_&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD&gt;&lt;STRONG&gt;&lt;FONT face="Albany AMT" size="2" color="#112277"&gt;COL1&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;STRONG&gt;&lt;FONT face="Albany AMT" size="2" color="#112277"&gt;1&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD&gt;&lt;FONT face="Albany AMT" size="2" color="#000000"&gt;IP_SUM&lt;/FONT&gt;&lt;/TD&gt;&lt;TD&gt;&lt;FONT face="Albany AMT" size="2" color="#000000"&gt;10&lt;/FONT&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;STRONG&gt;&lt;FONT face="Albany AMT" size="2" color="#112277"&gt;2&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD&gt;&lt;FONT face="Albany AMT" size="2" color="#000000"&gt;CV_SUM&lt;/FONT&gt;&lt;/TD&gt;&lt;TD&gt;&lt;FONT face="Albany AMT" size="2" color="#000000"&gt;20&lt;/FONT&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;STRONG&gt;&lt;FONT face="Albany AMT" size="2" color="#112277"&gt;3&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD&gt;&lt;FONT face="Albany AMT" size="2" color="#000000"&gt;RS_SUM&lt;/FONT&gt;&lt;/TD&gt;&lt;TD&gt;&lt;FONT face="Albany AMT" size="2" color="#000000"&gt;30&lt;/FONT&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;</description>
      <pubDate>Fri, 23 Jul 2021 03:39:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Move-Data-from-SAS-to-specific-cells-in-Excel/m-p/756109#M25150</guid>
      <dc:creator>jhh197</dc:creator>
      <dc:date>2021-07-23T03:39:01Z</dc:date>
    </item>
    <item>
      <title>Re: Move Data from SAS to specific cells in Excel</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Move-Data-from-SAS-to-specific-cells-in-Excel/m-p/756133#M25151</link>
      <description>&lt;P&gt;Hi Reeza,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you so much it helped .&lt;/P&gt;</description>
      <pubDate>Fri, 23 Jul 2021 06:48:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Move-Data-from-SAS-to-specific-cells-in-Excel/m-p/756133#M25151</guid>
      <dc:creator>jhh197</dc:creator>
      <dc:date>2021-07-23T06:48:29Z</dc:date>
    </item>
  </channel>
</rss>

