<?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: Open an excel file with SAS in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Open-an-excel-file-with-SAS/m-p/559701#M156338</link>
    <description>&lt;P&gt;DDE is fragile, not being recommended by Microsoft and the communication approach it uses can be conflicted by other programs such that DDE will not work.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So if your approach quits working it is likely to be something external to SAS that changes in your environment.&lt;/P&gt;
&lt;P&gt;I found this out when my shop installed Cisco Jabber.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You may also have issues with Office 365 as the Microsoft Office no longer has an "Excel.exe", at least not one that I can find.&lt;/P&gt;</description>
    <pubDate>Fri, 17 May 2019 15:42:43 GMT</pubDate>
    <dc:creator>ballardw</dc:creator>
    <dc:date>2019-05-17T15:42:43Z</dc:date>
    <item>
      <title>Open an excel file with SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Open-an-excel-file-with-SAS/m-p/559604#M156289</link>
      <description>&lt;P&gt;IHello !&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to open an Excel file with SAS. There is another topic but i don't find the answer on it (&lt;A href="https://communities.sas.com/t5/General-SAS-Programming/opening-an-excel-file-with-SAS/td-p/260934" target="_blank"&gt;https://communities.sas.com/t5/General-SAS-Programming/opening-an-excel-file-with-SAS/td-p/260934&lt;/A&gt;).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So there is the code I found on internet :&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%MACRO Sleep(pSeconds);
DATA _NULL_;
vVar1=SLEEP(&amp;amp;pSeconds);
RUN;
%MEND;

%MACRO OpenXls(pFile);
OPTIONS NOXWAIT NOXSYNC MISSING='';
X '"C:\Program Files\Microsoft Office\Office15\EXCEL.EXE / &amp;amp;pFile..xlsx"';
%sleep(2)
%MEND;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;I can open Excel if I delete&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt; / &amp;amp;pfile..xlsx&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;But if i don't delete this part and i want to open the specific file, it doesn't work :&lt;/P&gt;&lt;P&gt;My file is on a repertory like this :&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000FF"&gt;&lt;STRONG&gt;L:\CLIENTS\XXX\ETUDES\# PROD\111111 vérité\StatTris\2019T1\DATAS\questionnaire long.xlsx&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000"&gt;Any ideas ?&lt;BR /&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000"&gt;Thank you !&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000"&gt;Onizuka&lt;/FONT&gt;&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>Fri, 17 May 2019 09:48:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Open-an-excel-file-with-SAS/m-p/559604#M156289</guid>
      <dc:creator>Onizuka</dc:creator>
      <dc:date>2019-05-17T09:48:33Z</dc:date>
    </item>
    <item>
      <title>Re: Open an excel file with SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Open-an-excel-file-with-SAS/m-p/559610#M156294</link>
      <description>&lt;P&gt;I find a solution which is :&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;open Excel first&lt;/LI&gt;&lt;LI&gt;open the file after&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%macro Open_FileXlsx(nom_fichier); /* nom_fichier is the path + name + extension of the file */
OPTIONS NOXWAIT NOXSYNC MISSING='';
X '"C:\Program Files\Microsoft Office\Office15\EXCEL.EXE "';
%sleep(1);
FILENAME cmds DDE 'Excel|system';
DATA _NULL_;
FILE cmds;
PUT "[open("'"'"&amp;amp;nom_fichier"'"'")]"; 
RUN;
%mend;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 17 May 2019 12:24:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Open-an-excel-file-with-SAS/m-p/559610#M156294</guid>
      <dc:creator>Onizuka</dc:creator>
      <dc:date>2019-05-17T12:24:24Z</dc:date>
    </item>
    <item>
      <title>Re: Open an excel file with SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Open-an-excel-file-with-SAS/m-p/559701#M156338</link>
      <description>&lt;P&gt;DDE is fragile, not being recommended by Microsoft and the communication approach it uses can be conflicted by other programs such that DDE will not work.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So if your approach quits working it is likely to be something external to SAS that changes in your environment.&lt;/P&gt;
&lt;P&gt;I found this out when my shop installed Cisco Jabber.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You may also have issues with Office 365 as the Microsoft Office no longer has an "Excel.exe", at least not one that I can find.&lt;/P&gt;</description>
      <pubDate>Fri, 17 May 2019 15:42:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Open-an-excel-file-with-SAS/m-p/559701#M156338</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2019-05-17T15:42:43Z</dc:date>
    </item>
    <item>
      <title>Re: Open an excel file with SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Open-an-excel-file-with-SAS/m-p/560029#M156486</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13884"&gt;@ballardw&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;&lt;P&gt;DDE is fragile, not being recommended by Microsoft and the communication approach it uses can be conflicted by other programs such that DDE will not work.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So if your approach quits working it is likely to be something external to SAS that changes in your environment.&lt;/P&gt;&lt;P&gt;I found this out when my shop installed Cisco Jabber.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You may also have issues with Office 365 as the Microsoft Office no longer has an "Excel.exe", at least not one that I can find.&lt;/P&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Hello, thank you for your answer, I appreciate it &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For information, i am in an internship until august. I will provide to the company the code with the DDE but telling that it can have some problems. The problem is that the excel file have differents sheets and we don't have the possibility to import "XLS" or "XLSX" or "EXCEL" files on SAS (unless we convert it in CSV but to long because lot of sheets..)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Edit : sorry for my bad english haha&lt;/P&gt;</description>
      <pubDate>Mon, 20 May 2019 08:06:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Open-an-excel-file-with-SAS/m-p/560029#M156486</guid>
      <dc:creator>Onizuka</dc:creator>
      <dc:date>2019-05-20T08:06:47Z</dc:date>
    </item>
  </channel>
</rss>

