<?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: Error using DDE to download Excel spreadshet in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Error-using-DDE-to-download-Excel-spreadshet/m-p/489217#M127685</link>
    <description>&lt;P&gt;yeah, why u ask so ?&lt;/P&gt;</description>
    <pubDate>Thu, 23 Aug 2018 12:12:16 GMT</pubDate>
    <dc:creator>Shrij</dc:creator>
    <dc:date>2018-08-23T12:12:16Z</dc:date>
    <item>
      <title>Error using DDE to download Excel spreadshet</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Error-using-DDE-to-download-Excel-spreadshet/m-p/487327#M126973</link>
      <description>&lt;P&gt;filename PDfile DDE "Excel|N:\statistics\Pr 113-10\Safety Analysis\Data\External\[113-10_Updated_Master PD tracker_18 Jan 18.xlsx]Sheet1!R2C1:R139C15" notab;&lt;/P&gt;&lt;P&gt;data PD;&lt;BR /&gt;infile PDfile dlm='09'x dsd missover LRECL=150006;&lt;BR /&gt;input Sr_No:$3. ScreeningNo:$20. Subject_No:$6. Treatment:$5. Visit:$100. DateDeviation:$100. TimeDev:$20.&lt;BR /&gt;ProtocolSection:$20. Description:$800. TypeDev:$20. ProtocolDev:$50.&lt;BR /&gt;Reason:$500. Impact:$300. Corrective:$600. Preventive:$600.;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Am trying to read this file the path in correct, no flaw in that but yet while running it say :-&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;ERROR: Physical file does not exist, Excel|[N:\statistics\Pr 113-10\Safety&lt;BR /&gt;Analysis\Data\External\113-10_Updated_Master PD tracker_18 Jan 18.xlsx]Sheet1!R2C1:R139C15.&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;&lt;STRONG&gt;What am i doing wrong&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 16 Aug 2018 09:48:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Error-using-DDE-to-download-Excel-spreadshet/m-p/487327#M126973</guid>
      <dc:creator>Shrij</dc:creator>
      <dc:date>2018-08-16T09:48:29Z</dc:date>
    </item>
    <item>
      <title>Re: Error using DDE to download Excel spreadshet</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Error-using-DDE-to-download-Excel-spreadshet/m-p/487332#M126975</link>
      <description>&lt;P&gt;Does the file exist in the location you specified.&amp;nbsp; &amp;nbsp;Anyways irrelevant, don't use DDE.&amp;nbsp; It is ancient &amp;gt; 15 years out of support, doesn't have later Excel version functionalities, only works on one system, and really shouldn't be being used (although to be honest, avoiding Excel at all will help you no end).&amp;nbsp; Proc import should read that ok, although using a guessing procedure isn't recommended either.&lt;/P&gt;
&lt;P&gt;Get the data in a proper data transfer file format such as csv, then write a datastep to correctly import the data.&lt;/P&gt;</description>
      <pubDate>Thu, 16 Aug 2018 10:16:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Error-using-DDE-to-download-Excel-spreadshet/m-p/487332#M126975</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2018-08-16T10:16:51Z</dc:date>
    </item>
    <item>
      <title>Re: Error using DDE to download Excel spreadshet</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Error-using-DDE-to-download-Excel-spreadshet/m-p/487426#M127013</link>
      <description>&lt;P&gt;Have you made sure that Excel is up and running and has loaded the workbook?&lt;/P&gt;
&lt;P&gt;See this example from a paper found at lexjansen.com:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;*;
/* set options and invoke Excel using DDE */
*;
options noxwait noxsync;
x '"c:\program files\microsoft office\office11\excel.exe"';
data _null_;
x=sleep(5);
run;
*;
/* open Excel workbook */
*;
filename ddecmd dde 'excel|system';
data _null_;
file ddecmd;
put '[FILE-OPEN("c:\wuss\names workbook.xls")]';
run;
*;
/* specify desired Excel worksheet cell range */
*;
filename xlin DDE "excel|c:\wuss\[names workbook.xls]names worksheet!r2c1:r65536c6";
run;
*;
/* read Excel files using DDE into SAS data set*/
*;
data wuss.employee(label='EMPLOYEE ROSTER' index=(EMP_ID));
infile xlin dlm='09'x notab missover dsd;
informat FIRST $20. LAST $20. DEPT $4. EMP_ID $6. TITLE $30. RATE 8.2;
input FIRST LAST DEPT EMP_ID TITLE RATE;
format FIRST $20. LAST $20. DEPT $4. EMP_ID $6. TITLE $30. RATE 8.2;
label FIRST  = 'EMPLOYEE FIRST NAME'
LAST   = 'EMPLOYEE LAST NAME'
DEPT   = 'DEPARTMENT'
EMP_ID = 'EMPLOYEE ID'
TITLE  = 'EMPLOYEE TITLE'
RATE   = 'PAY RATE';
run;
*;
/* close Excel workbook and close Excel */
*;
8
data _null_;
file xlin;
put '[FILE-CLOSE("c:\wuss\names workbook.xls")]';
put ‘[QUIT()]’;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;The "physical file does not exist" will happen if Excel is not started, for instance.&lt;/P&gt;</description>
      <pubDate>Thu, 16 Aug 2018 14:11:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Error-using-DDE-to-download-Excel-spreadshet/m-p/487426#M127013</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2018-08-16T14:11:01Z</dc:date>
    </item>
    <item>
      <title>Re: Error using DDE to download Excel spreadshet</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Error-using-DDE-to-download-Excel-spreadshet/m-p/487441#M127020</link>
      <description>&lt;P&gt;Are you running in any sort of SAS server version? If so does the SERVER see the same drive N as you do?&lt;/P&gt;</description>
      <pubDate>Thu, 16 Aug 2018 14:32:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Error-using-DDE-to-download-Excel-spreadshet/m-p/487441#M127020</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2018-08-16T14:32:48Z</dc:date>
    </item>
    <item>
      <title>Re: Error using DDE to download Excel spreadshet</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Error-using-DDE-to-download-Excel-spreadshet/m-p/489217#M127685</link>
      <description>&lt;P&gt;yeah, why u ask so ?&lt;/P&gt;</description>
      <pubDate>Thu, 23 Aug 2018 12:12:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Error-using-DDE-to-download-Excel-spreadshet/m-p/489217#M127685</guid>
      <dc:creator>Shrij</dc:creator>
      <dc:date>2018-08-23T12:12:16Z</dc:date>
    </item>
  </channel>
</rss>

