<?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: Quit DOS window from SAS in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Quit-DOS-window-from-SAS/m-p/117738#M32463</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Suggest you try system option NOXWAIT.&lt;/P&gt;&lt;P&gt;HTH,&lt;/P&gt;&lt;P&gt;--Q.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 23 Apr 2013 22:33:05 GMT</pubDate>
    <dc:creator>Quentin</dc:creator>
    <dc:date>2013-04-23T22:33:05Z</dc:date>
    <item>
      <title>Quit DOS window from SAS</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Quit-DOS-window-from-SAS/m-p/117737#M32462</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I use the X command in a SAS program to run a DOS program. The program ends its run with a "Press any key to continue", i.e. the program window does not close with the SAS program options noxwait xsync.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there a way for SAS to recognize when the DOS program reached "Press any key to continue" and then quit the window?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Apr 2013 21:03:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Quit-DOS-window-from-SAS/m-p/117737#M32462</guid>
      <dc:creator>blackraven</dc:creator>
      <dc:date>2013-04-23T21:03:53Z</dc:date>
    </item>
    <item>
      <title>Re: Quit DOS window from SAS</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Quit-DOS-window-from-SAS/m-p/117738#M32463</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Suggest you try system option NOXWAIT.&lt;/P&gt;&lt;P&gt;HTH,&lt;/P&gt;&lt;P&gt;--Q.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Apr 2013 22:33:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Quit-DOS-window-from-SAS/m-p/117738#M32463</guid>
      <dc:creator>Quentin</dc:creator>
      <dc:date>2013-04-23T22:33:05Z</dc:date>
    </item>
    <item>
      <title>Re: Quit DOS window from SAS</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Quit-DOS-window-from-SAS/m-p/117739#M32464</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The program in the DOS window is running and need to be closed upon showing "Press any key to continue" in the DOS window.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Apr 2013 06:53:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Quit-DOS-window-from-SAS/m-p/117739#M32464</guid>
      <dc:creator>blackraven</dc:creator>
      <dc:date>2013-04-24T06:53:44Z</dc:date>
    </item>
    <item>
      <title>Re: Quit DOS window from SAS</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Quit-DOS-window-from-SAS/m-p/117740#M32465</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try with SYSTASK COMMAND and you can also use option NOXWAIT.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Apr 2013 08:34:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Quit-DOS-window-from-SAS/m-p/117740#M32465</guid>
      <dc:creator>suraestar</dc:creator>
      <dc:date>2013-04-24T08:34:18Z</dc:date>
    </item>
    <item>
      <title>Re: Quit DOS window from SAS</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Quit-DOS-window-from-SAS/m-p/117741#M32466</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Well this is a little kludgy, but, assuming your program doesn't expect any input from you during execution, you could just pipe it a keystroke right from the X command. E.g., I wrote a batch program (Test.bat) that just echos text to the console and waits for a keystroke.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;echo This is a test&lt;/P&gt;&lt;P&gt;pause&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then, the following SAS program runs the batch program but gives it a keystroke when it asks for one (in this case a 'y', but it could be anything).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;options noxwait;&lt;/P&gt;&lt;P&gt;x echo y | test.bat;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When run, it echos the text, reads the 'y' from the echo command, terminates and closes the dos window. Obviously, you'd replace "test.bat" with your program name.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HTH&lt;/P&gt;&lt;P&gt;Karl&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Apr 2013 15:14:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Quit-DOS-window-from-SAS/m-p/117741#M32466</guid>
      <dc:creator>KarlK</dc:creator>
      <dc:date>2013-04-24T15:14:07Z</dc:date>
    </item>
    <item>
      <title>Re: Quit DOS window from SAS</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Quit-DOS-window-from-SAS/m-p/117742#M32467</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This was very helpful.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Apr 2013 14:05:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Quit-DOS-window-from-SAS/m-p/117742#M32467</guid>
      <dc:creator>blackraven</dc:creator>
      <dc:date>2013-04-25T14:05:25Z</dc:date>
    </item>
  </channel>
</rss>

