<?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: Using SAS DDE and VB code in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Using-SAS-DDE-and-VB-code/m-p/334169#M272220</link>
    <description>&lt;P&gt;I did a presentation on this a few years ago,&amp;nbsp;Coordinating Complex Reports Using SAS.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://statgeeks.wordpress.com/2015/04/16/sample-work/" target="_blank"&gt;https://statgeeks.wordpress.com/2015/04/16/sample-work/&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;We've switched to using&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13711"&gt;@art297&lt;/a&gt;'s macro instead of DDE for exporting in most spots these days.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;We still use DDE to automatically convert the excel spreadsheet into PDFs and creating graphs in Excel. Sometimes the number of graphs can vary, not accounted for in this presentation or the link to the reports below. The VB code is embedded into the Excel workbook.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The steps in my process were:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;1. Copy the template to a new file with new name for the report. This workbook maintains the embedded VB code.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;2. Export the data from SAS to Excel, as required. Multiple steps may be required here depending on the number of tables needed.&lt;/P&gt;
&lt;P&gt;3. Use DDE to open and run the VB code for graphs&lt;/P&gt;
&lt;P&gt;4. Convert Excel file to PDF sections, using DDE + VB&lt;/P&gt;
&lt;P&gt;5. Go to Step 1 &amp;amp; 100+ for custom reports with formatting and customized texts.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Reports are here if you're curious &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="http://www.health.alberta.ca/services/PHC-community-profiles.html" target="_blank"&gt;http://www.health.alberta.ca/services/PHC-community-profiles.html&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Good Luck!&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>Sun, 19 Feb 2017 07:34:19 GMT</pubDate>
    <dc:creator>Reeza</dc:creator>
    <dc:date>2017-02-19T07:34:19Z</dc:date>
    <item>
      <title>Using SAS DDE and VB code</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Using-SAS-DDE-and-VB-code/m-p/334154#M272218</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want to know some good resources for achieving a output where i need to create a output using sas DDE and VB code.I want to create a template in excel and when sas outputs the data the template can be used to create the output.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any help would be appreciated&lt;/P&gt;</description>
      <pubDate>Sun, 19 Feb 2017 03:22:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Using-SAS-DDE-and-VB-code/m-p/334154#M272218</guid>
      <dc:creator>JasonNC</dc:creator>
      <dc:date>2017-02-19T03:22:43Z</dc:date>
    </item>
    <item>
      <title>Re: Using SAS DDE and VB code</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Using-SAS-DDE-and-VB-code/m-p/334163#M272219</link>
      <description>&lt;P&gt;You don't need DDE for that and, in fact, don't even have to write the VB code. A couple of us already did that for you.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Take a look at the freely available macro at:&amp;nbsp;&lt;A href="http://www.sascommunity.org/wiki/A_Poor/Rich_SAS_Users_Proc_Export" target="_blank"&gt;http://www.sascommunity.org/wiki/A_Poor/Rich_SAS_Users_Proc_Export&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;HTH,&lt;/P&gt;
&lt;P&gt;Art, CEO, AnalystFinder.com&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 19 Feb 2017 04:20:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Using-SAS-DDE-and-VB-code/m-p/334163#M272219</guid>
      <dc:creator>art297</dc:creator>
      <dc:date>2017-02-19T04:20:35Z</dc:date>
    </item>
    <item>
      <title>Re: Using SAS DDE and VB code</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Using-SAS-DDE-and-VB-code/m-p/334169#M272220</link>
      <description>&lt;P&gt;I did a presentation on this a few years ago,&amp;nbsp;Coordinating Complex Reports Using SAS.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://statgeeks.wordpress.com/2015/04/16/sample-work/" target="_blank"&gt;https://statgeeks.wordpress.com/2015/04/16/sample-work/&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;We've switched to using&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13711"&gt;@art297&lt;/a&gt;'s macro instead of DDE for exporting in most spots these days.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;We still use DDE to automatically convert the excel spreadsheet into PDFs and creating graphs in Excel. Sometimes the number of graphs can vary, not accounted for in this presentation or the link to the reports below. The VB code is embedded into the Excel workbook.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The steps in my process were:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;1. Copy the template to a new file with new name for the report. This workbook maintains the embedded VB code.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;2. Export the data from SAS to Excel, as required. Multiple steps may be required here depending on the number of tables needed.&lt;/P&gt;
&lt;P&gt;3. Use DDE to open and run the VB code for graphs&lt;/P&gt;
&lt;P&gt;4. Convert Excel file to PDF sections, using DDE + VB&lt;/P&gt;
&lt;P&gt;5. Go to Step 1 &amp;amp; 100+ for custom reports with formatting and customized texts.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Reports are here if you're curious &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="http://www.health.alberta.ca/services/PHC-community-profiles.html" target="_blank"&gt;http://www.health.alberta.ca/services/PHC-community-profiles.html&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Good Luck!&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>Sun, 19 Feb 2017 07:34:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Using-SAS-DDE-and-VB-code/m-p/334169#M272220</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2017-02-19T07:34:19Z</dc:date>
    </item>
    <item>
      <title>Re: Using SAS DDE and VB code</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Using-SAS-DDE-and-VB-code/m-p/334263#M272221</link>
      <description>&lt;P&gt;Wow that's awesome.I am including this macro in the job through %include.Usually i do remote submit but this macro didn't work while i did remote submit.I just submited the job then it ran.I am using macro variables in the folder destination for creating the output&lt;/P&gt;&lt;P&gt;I want to create the file on shared drive not on my local drive&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;%INCLUDE "\\corp\....\exportxl.sas";&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;%exportxl( data=&amp;amp;t1._Data&lt;BR /&gt;template=\\corp\.....\Template.xltx,&lt;BR /&gt;templatesheet=sheet1,&lt;BR /&gt;outfile=\\corp\....\&amp;amp;Yr\&amp;amp;Mthyy\Research_&amp;amp;Mthyy..xls,&lt;BR /&gt;type=N,&lt;BR /&gt;usenames=N,&lt;BR /&gt;range=A2,&lt;BR /&gt;sheet=Rsch);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1) when i did remote submit the job didn't work.Why/&lt;/P&gt;&lt;P&gt;2) I submitted the job but got the following error&lt;/P&gt;&lt;P&gt;ERROR: Connect: Class not registered&lt;BR /&gt;ERROR: Error in the LIBNAME statement.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What mistake I am doing?&lt;/P&gt;</description>
      <pubDate>Mon, 20 Feb 2017 05:54:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Using-SAS-DDE-and-VB-code/m-p/334263#M272221</guid>
      <dc:creator>JasonNC</dc:creator>
      <dc:date>2017-02-20T05:54:59Z</dc:date>
    </item>
    <item>
      <title>Re: Using SAS DDE and VB code</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Using-SAS-DDE-and-VB-code/m-p/334360#M272222</link>
      <description>&lt;P&gt;I've never used rsubmit to run the macro, thus can't be sure of the reason. One possibility, though, is that you'll need to include the server_path parameter. It's described in the paper that's on the same page as the macro.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Art, CEO, AnalystFinder.com&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 20 Feb 2017 15:07:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Using-SAS-DDE-and-VB-code/m-p/334360#M272222</guid>
      <dc:creator>art297</dc:creator>
      <dc:date>2017-02-20T15:07:42Z</dc:date>
    </item>
  </channel>
</rss>

