<?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: Macro variable for opening Excel file with DDE in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Macro-variable-for-opening-Excel-file-with-DDE/m-p/343987#M79016</link>
    <description>&lt;P&gt;Thanks I found the solution, I had to replace outer single quotes with double quotes :&lt;/P&gt;&lt;PRE&gt;SYSTASK COMMAND "Start Excel" ;
FILENAME xlAppli DDE "Excel|System" ;
DATA _NULL_ ;
     CALL SLEEP(3,1) ; 
RUN ;

%let region=bretagne;
data _null_;
file xlAppli;
put '[error(false)]';
put "[open(""C:\Users\Desktop\&amp;amp;region..xls"")]";
run;&lt;/PRE&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
    <pubDate>Fri, 24 Mar 2017 09:01:46 GMT</pubDate>
    <dc:creator>indox</dc:creator>
    <dc:date>2017-03-24T09:01:46Z</dc:date>
    <item>
      <title>Macro variable for opening Excel file with DDE</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Macro-variable-for-opening-Excel-file-with-DDE/m-p/343982#M79014</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would like to open dynamically Excel files using DDE and Macro Variables.&lt;/P&gt;&lt;P&gt;This is my code :&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;FILENAME xlAppli DDE "Excel|System" ;&lt;BR /&gt;SYSTASK COMMAND "Start Excel" ;
DATA _NULL_ ;
     CALL SLEEP(3,1) ; 
RUN ;

%let region=bretagne;
data _null_;
file xlAppli;
put '[error(false)]';
put '[open(""C:\Users\Desktop\&amp;amp;region..xls"")]';
run;&lt;/PRE&gt;&lt;P&gt;But it happens nothing.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can someone help please?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;</description>
      <pubDate>Fri, 24 Mar 2017 08:55:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Macro-variable-for-opening-Excel-file-with-DDE/m-p/343982#M79014</guid>
      <dc:creator>indox</dc:creator>
      <dc:date>2017-03-24T08:55:16Z</dc:date>
    </item>
    <item>
      <title>Re: Macro variable for opening Excel file with DDE</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Macro-variable-for-opening-Excel-file-with-DDE/m-p/343987#M79016</link>
      <description>&lt;P&gt;Thanks I found the solution, I had to replace outer single quotes with double quotes :&lt;/P&gt;&lt;PRE&gt;SYSTASK COMMAND "Start Excel" ;
FILENAME xlAppli DDE "Excel|System" ;
DATA _NULL_ ;
     CALL SLEEP(3,1) ; 
RUN ;

%let region=bretagne;
data _null_;
file xlAppli;
put '[error(false)]';
put "[open(""C:\Users\Desktop\&amp;amp;region..xls"")]";
run;&lt;/PRE&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Fri, 24 Mar 2017 09:01:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Macro-variable-for-opening-Excel-file-with-DDE/m-p/343987#M79016</guid>
      <dc:creator>indox</dc:creator>
      <dc:date>2017-03-24T09:01:46Z</dc:date>
    </item>
  </channel>
</rss>

