<?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: DDE save.as command works interactively but not in batch mode in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/DDE-save-as-command-works-interactively-but-not-in-batch-mode/m-p/399301#M96703</link>
    <description>&lt;P&gt;We're not using stones and chisels anymore, so stop using DDE. It may not be dead, but it smells mighty funny.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Windows has the nice "feature" of running scheduled jobs in a different environment than the interactive ones (total idiocy, but that's Microsoft), so it looks as if it can't find Excel because of a missing PATH to it. Try using the absolute path to the Excel executable (starting with C:\)&lt;/P&gt;</description>
    <pubDate>Wed, 27 Sep 2017 18:59:38 GMT</pubDate>
    <dc:creator>Kurt_Bremser</dc:creator>
    <dc:date>2017-09-27T18:59:38Z</dc:date>
    <item>
      <title>DDE save.as command works interactively but not in batch mode</title>
      <link>https://communities.sas.com/t5/SAS-Programming/DDE-save-as-command-works-interactively-but-not-in-batch-mode/m-p/399271#M96694</link>
      <description>&lt;P&gt;Hi everyone,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've read that DDE is an older way to populate an Excel file, but it has been working fine until now.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am running a program that has been running using Task Scheduler without any issues (Windows 7 OS).&amp;nbsp; The new PC that I am now using has been upgraded to Windows 10.&amp;nbsp; I can run the DDE process interactively without any issues, but when I am running the process through Task Scheduler, I am getting an error when the Excel file is trying to be saved.&amp;nbsp; The error is listed below the code snippet.&amp;nbsp; Does anyone have any insights or might have had a similar problem?&amp;nbsp; Is Windows 10 the issue?&amp;nbsp; The SAS version being used is 9.4 TS Level 1M4.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for any help anyone can provide.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;FILENAME HH DDE 'EXCEL|SYSTEM';&lt;BR /&gt;DATA _NULL_;&lt;BR /&gt;&amp;nbsp; FILE HH;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;BR /&gt;&amp;nbsp; PUT "[RUN(""&amp;amp;xlssheet.!MACRO1"",FALSE)]";&lt;BR /&gt;&amp;nbsp; PUT "[save.AS(""...\&amp;amp;MONTH. &amp;amp;today.\Audit_&amp;amp;&amp;amp;E&amp;amp;I...xls"")]";&lt;BR /&gt;&amp;nbsp; PUT '[QUIT()]';&lt;BR /&gt;RUN;&lt;BR /&gt;%END;&lt;BR /&gt;%mend;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;ERROR: Physical file does not exist, EXCEL|SYSTEM.&lt;BR /&gt;NOTE: The SAS System stopped processing this step because of errors.&lt;/P&gt;</description>
      <pubDate>Wed, 27 Sep 2017 17:25:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/DDE-save-as-command-works-interactively-but-not-in-batch-mode/m-p/399271#M96694</guid>
      <dc:creator>Bert_O</dc:creator>
      <dc:date>2017-09-27T17:25:55Z</dc:date>
    </item>
    <item>
      <title>Re: DDE save.as command works interactively but not in batch mode</title>
      <link>https://communities.sas.com/t5/SAS-Programming/DDE-save-as-command-works-interactively-but-not-in-batch-mode/m-p/399301#M96703</link>
      <description>&lt;P&gt;We're not using stones and chisels anymore, so stop using DDE. It may not be dead, but it smells mighty funny.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Windows has the nice "feature" of running scheduled jobs in a different environment than the interactive ones (total idiocy, but that's Microsoft), so it looks as if it can't find Excel because of a missing PATH to it. Try using the absolute path to the Excel executable (starting with C:\)&lt;/P&gt;</description>
      <pubDate>Wed, 27 Sep 2017 18:59:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/DDE-save-as-command-works-interactively-but-not-in-batch-mode/m-p/399301#M96703</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2017-09-27T18:59:38Z</dc:date>
    </item>
  </channel>
</rss>

