<?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 Refreshing Pivot Table from SAS in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Refreshing-Pivot-Table-from-SAS/m-p/400488#M66716</link>
    <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have been trying to automate refreshing a pivot table from SAS and followed the previous suggestions from the link below :-&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://communities.sas.com/t5/SAS-Procedures/Updating-Extrenal-Excel-Pivot-Table-in-SAS/td-p/167515&amp;nbsp;" target="_blank"&gt;https://communities.sas.com/t5/SAS-Procedures/Updating-Extrenal-Excel-Pivot-Table-in-SAS/td-p/167515&amp;nbsp;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However I still get the DDE Error :-&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;ERROR: DDE session not ready.&lt;BR /&gt;FATAL: Unrecoverable I/O error detected in the execution of the DATA step program.&lt;BR /&gt;Aborted during the EXECUTION phase.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Code:-&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;options noxwait noxsync;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;data _null_;&lt;BR /&gt;&amp;nbsp; rc=system('start excel');&lt;BR /&gt;&amp;nbsp; rc=sleep(5);&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;CODE&gt;filename cmds dde 'excel|system';&lt;/CODE&gt;&lt;/P&gt;&lt;P&gt;&lt;CODE&gt;data _null_;&lt;/CODE&gt;&lt;/P&gt;&lt;P&gt;&lt;CODE&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; file cmds;&lt;/CODE&gt;&lt;/P&gt;&lt;P&gt;&lt;CODE&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; put "[open(""&amp;amp;path\&amp;amp;f_name..xls"")]";&lt;/CODE&gt;&lt;/P&gt;&lt;P&gt;&lt;CODE&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; put '[workbook.select("Pivot")]';&lt;/CODE&gt;&lt;/P&gt;&lt;P&gt;&lt;CODE&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; put '[select("R1C4")]';&lt;/CODE&gt;&lt;/P&gt;&lt;P&gt;&lt;CODE&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; put "[pivot.refresh()]";&lt;/CODE&gt;&lt;/P&gt;&lt;P&gt;&lt;CODE&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; put "[save()]";&lt;/CODE&gt;&lt;/P&gt;&lt;P&gt;&lt;CODE&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; put "[quit()]";&lt;/CODE&gt;&lt;/P&gt;&lt;P&gt;&lt;CODE&gt;run;&lt;/CODE&gt;&lt;/P&gt;&lt;P&gt;&lt;CODE&gt;quit&lt;/CODE&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here the Excel file is a 2003 file and I have debugged this code. I get the error with this code line&amp;nbsp; '&amp;nbsp;&lt;SPAN&gt;put "[pivot.refresh()]"; '&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Please advice.&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 02 Oct 2017 23:27:47 GMT</pubDate>
    <dc:creator>antenga</dc:creator>
    <dc:date>2017-10-02T23:27:47Z</dc:date>
    <item>
      <title>Refreshing Pivot Table from SAS</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Refreshing-Pivot-Table-from-SAS/m-p/400488#M66716</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have been trying to automate refreshing a pivot table from SAS and followed the previous suggestions from the link below :-&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://communities.sas.com/t5/SAS-Procedures/Updating-Extrenal-Excel-Pivot-Table-in-SAS/td-p/167515&amp;nbsp;" target="_blank"&gt;https://communities.sas.com/t5/SAS-Procedures/Updating-Extrenal-Excel-Pivot-Table-in-SAS/td-p/167515&amp;nbsp;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However I still get the DDE Error :-&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;ERROR: DDE session not ready.&lt;BR /&gt;FATAL: Unrecoverable I/O error detected in the execution of the DATA step program.&lt;BR /&gt;Aborted during the EXECUTION phase.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Code:-&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;options noxwait noxsync;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;data _null_;&lt;BR /&gt;&amp;nbsp; rc=system('start excel');&lt;BR /&gt;&amp;nbsp; rc=sleep(5);&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;CODE&gt;filename cmds dde 'excel|system';&lt;/CODE&gt;&lt;/P&gt;&lt;P&gt;&lt;CODE&gt;data _null_;&lt;/CODE&gt;&lt;/P&gt;&lt;P&gt;&lt;CODE&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; file cmds;&lt;/CODE&gt;&lt;/P&gt;&lt;P&gt;&lt;CODE&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; put "[open(""&amp;amp;path\&amp;amp;f_name..xls"")]";&lt;/CODE&gt;&lt;/P&gt;&lt;P&gt;&lt;CODE&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; put '[workbook.select("Pivot")]';&lt;/CODE&gt;&lt;/P&gt;&lt;P&gt;&lt;CODE&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; put '[select("R1C4")]';&lt;/CODE&gt;&lt;/P&gt;&lt;P&gt;&lt;CODE&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; put "[pivot.refresh()]";&lt;/CODE&gt;&lt;/P&gt;&lt;P&gt;&lt;CODE&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; put "[save()]";&lt;/CODE&gt;&lt;/P&gt;&lt;P&gt;&lt;CODE&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; put "[quit()]";&lt;/CODE&gt;&lt;/P&gt;&lt;P&gt;&lt;CODE&gt;run;&lt;/CODE&gt;&lt;/P&gt;&lt;P&gt;&lt;CODE&gt;quit&lt;/CODE&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here the Excel file is a 2003 file and I have debugged this code. I get the error with this code line&amp;nbsp; '&amp;nbsp;&lt;SPAN&gt;put "[pivot.refresh()]"; '&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Please advice.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 02 Oct 2017 23:27:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Refreshing-Pivot-Table-from-SAS/m-p/400488#M66716</guid>
      <dc:creator>antenga</dc:creator>
      <dc:date>2017-10-02T23:27:47Z</dc:date>
    </item>
    <item>
      <title>Re: Refreshing Pivot Table from SAS</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Refreshing-Pivot-Table-from-SAS/m-p/400497#M66718</link>
      <description>&lt;P&gt;Is that the correct command for an XLS file? What's the command in the&amp;nbsp;Microsoft 4.0 guide?&lt;/P&gt;
&lt;P&gt;Also, is your pivot table starting in that cell?&lt;/P&gt;</description>
      <pubDate>Tue, 03 Oct 2017 00:11:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Refreshing-Pivot-Table-from-SAS/m-p/400497#M66718</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2017-10-03T00:11:34Z</dc:date>
    </item>
    <item>
      <title>Re: Refreshing Pivot Table from SAS</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Refreshing-Pivot-Table-from-SAS/m-p/400498#M66719</link>
      <description>&lt;P&gt;Apologies, as that was an error on my side&amp;nbsp; as it should be R4C1.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I was debugging this and had fixed this.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 03 Oct 2017 00:27:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Refreshing-Pivot-Table-from-SAS/m-p/400498#M66719</guid>
      <dc:creator>antenga</dc:creator>
      <dc:date>2017-10-03T00:27:30Z</dc:date>
    </item>
  </channel>
</rss>

