<?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 Error message displayed when launching batch in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Error-message-displayed-when-launching-batch/m-p/153167#M30104</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am not sure this is the right subforum. I am trying for a couple of hours to create a batch that will be manage by Windows Task manager.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My .bat file is stored in the same folder than the program I am calling and contains the following:&lt;/P&gt;&lt;P&gt;"C:\Program Files\SASHome\SASFoundation\9.3\SAS.exe" Batch.sas -NOLOGO -ICON&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The program "Batch.sas" contains the following:&lt;/P&gt;&lt;P&gt;%include "D:\myotherprogram.sas";&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I double-click on the .bat file, SAS is launched but a popup shows and displays "This window is unavailable in line-mode". The only information I found is from SAS support site at &lt;A href="http://support.sas.com/kb/44/705.html" title="http://support.sas.com/kb/44/705.html"&gt;44705 - The message "This window is unavailable in line-mode" is displayed after submitting a program to rum in batch mode&lt;/A&gt; but the explanation are not clear (to me at least) as I cannot put in comments the single program line I have!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I guess it has to do with the %include instruction not allowed in a batch file but I really need to call a program (yes I could directly submit "myotherprogram.sas" into the batch but that does not work either as it contains %include clauses too).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks a lot&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 22 Nov 2013 13:23:33 GMT</pubDate>
    <dc:creator>ntro</dc:creator>
    <dc:date>2013-11-22T13:23:33Z</dc:date>
    <item>
      <title>Error message displayed when launching batch</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Error-message-displayed-when-launching-batch/m-p/153167#M30104</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am not sure this is the right subforum. I am trying for a couple of hours to create a batch that will be manage by Windows Task manager.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My .bat file is stored in the same folder than the program I am calling and contains the following:&lt;/P&gt;&lt;P&gt;"C:\Program Files\SASHome\SASFoundation\9.3\SAS.exe" Batch.sas -NOLOGO -ICON&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The program "Batch.sas" contains the following:&lt;/P&gt;&lt;P&gt;%include "D:\myotherprogram.sas";&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I double-click on the .bat file, SAS is launched but a popup shows and displays "This window is unavailable in line-mode". The only information I found is from SAS support site at &lt;A href="http://support.sas.com/kb/44/705.html" title="http://support.sas.com/kb/44/705.html"&gt;44705 - The message "This window is unavailable in line-mode" is displayed after submitting a program to rum in batch mode&lt;/A&gt; but the explanation are not clear (to me at least) as I cannot put in comments the single program line I have!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I guess it has to do with the %include instruction not allowed in a batch file but I really need to call a program (yes I could directly submit "myotherprogram.sas" into the batch but that does not work either as it contains %include clauses too).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks a lot&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Nov 2013 13:23:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Error-message-displayed-when-launching-batch/m-p/153167#M30104</guid>
      <dc:creator>ntro</dc:creator>
      <dc:date>2013-11-22T13:23:33Z</dc:date>
    </item>
    <item>
      <title>Re: Error message displayed when launching batch</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Error-message-displayed-when-launching-batch/m-p/153168#M30105</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I would say that the SAS program you %include is executing one of the offending statements mentioned in the Tech Support document.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have you looked myotherprogram.sas or any of the files that it %INCLUDES?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Nov 2013 13:42:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Error-message-displayed-when-launching-batch/m-p/153168#M30105</guid>
      <dc:creator>data_null__</dc:creator>
      <dc:date>2013-11-22T13:42:46Z</dc:date>
    </item>
    <item>
      <title>Re: Error message displayed when launching batch</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Error-message-displayed-when-launching-batch/m-p/153169#M30106</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In addition to what data _null_; has said, I have no problem submitting batch jobs that contain %include statements, so %include is not the problem. The problem is clearly the contents of your %include file.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Nov 2013 13:57:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Error-message-displayed-when-launching-batch/m-p/153169#M30106</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2013-11-22T13:57:48Z</dc:date>
    </item>
    <item>
      <title>Re: Error message displayed when launching batch</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Error-message-displayed-when-launching-batch/m-p/153170#M30107</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you both. I feel stupid now! The offending statements were in myotherprogram and SAS support tip was correct. It is just that I kept focusing on the first program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks again&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Nov 2013 14:42:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Error-message-displayed-when-launching-batch/m-p/153170#M30107</guid>
      <dc:creator>ntro</dc:creator>
      <dc:date>2013-11-22T14:42:10Z</dc:date>
    </item>
  </channel>
</rss>

