<?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 X Command - possible to start command window minimized? in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/X-Command-possible-to-start-command-window-minimized/m-p/481596#M286781</link>
    <description>&lt;P&gt;I'm using the X statement to execute a Python script(*.py)&amp;nbsp;towards the end of a long SAS program.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This may be a Python or Windows question, but is it possible to have the Command window launch minimized, or otherwise keep it from "stealing" focus? Because the SAS script is long-running, I may be working in another application by the time X executes, so the window is an interruption (or worse, if it captures inadvertent keystrokes).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Suggestions?&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;OPTIONS XWAIT XSYNC;  

X "C:\PATHWAY\SCRIPT.PY  &amp;amp;ARG1 &amp;amp;ARG2 "; &lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Thu, 26 Jul 2018 16:57:43 GMT</pubDate>
    <dc:creator>desertsp</dc:creator>
    <dc:date>2018-07-26T16:57:43Z</dc:date>
    <item>
      <title>X Command - possible to start command window minimized?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/X-Command-possible-to-start-command-window-minimized/m-p/481596#M286781</link>
      <description>&lt;P&gt;I'm using the X statement to execute a Python script(*.py)&amp;nbsp;towards the end of a long SAS program.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This may be a Python or Windows question, but is it possible to have the Command window launch minimized, or otherwise keep it from "stealing" focus? Because the SAS script is long-running, I may be working in another application by the time X executes, so the window is an interruption (or worse, if it captures inadvertent keystrokes).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Suggestions?&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;OPTIONS XWAIT XSYNC;  

X "C:\PATHWAY\SCRIPT.PY  &amp;amp;ARG1 &amp;amp;ARG2 "; &lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 26 Jul 2018 16:57:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/X-Command-possible-to-start-command-window-minimized/m-p/481596#M286781</guid>
      <dc:creator>desertsp</dc:creator>
      <dc:date>2018-07-26T16:57:43Z</dc:date>
    </item>
    <item>
      <title>Re: X Command - possible to start command window minimized?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/X-Command-possible-to-start-command-window-minimized/m-p/481597#M286782</link>
      <description>&lt;P&gt;Do you even need a window for the Python script?&lt;/P&gt;
&lt;P&gt;If not then don't ask for one.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data _null_;
  infile "C:\PATHWAY\SCRIPT.PY  &amp;amp;ARG1 &amp;amp;ARG2" pipe ;
  input;
  put _infile_;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 26 Jul 2018 17:00:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/X-Command-possible-to-start-command-window-minimized/m-p/481597#M286782</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2018-07-26T17:00:24Z</dc:date>
    </item>
    <item>
      <title>Re: X Command - possible to start command window minimized?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/X-Command-possible-to-start-command-window-minimized/m-p/481608#M286783</link>
      <description>&lt;P&gt;Didn't realize this was an option.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;As the script is currently configured, it does print a few informative messages to the window, although I could easily remove that functionality.&lt;/P&gt;</description>
      <pubDate>Thu, 26 Jul 2018 17:21:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/X-Command-possible-to-start-command-window-minimized/m-p/481608#M286783</guid>
      <dc:creator>desertsp</dc:creator>
      <dc:date>2018-07-26T17:21:17Z</dc:date>
    </item>
    <item>
      <title>Re: X Command - possible to start command window minimized?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/X-Command-possible-to-start-command-window-minimized/m-p/481613#M286784</link>
      <description>&lt;P&gt;Well&amp;nbsp;your approach does exactly what I wanted!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The window does still open, but it's minimized by default. The messages still print too.&lt;/P&gt;</description>
      <pubDate>Thu, 26 Jul 2018 17:28:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/X-Command-possible-to-start-command-window-minimized/m-p/481613#M286784</guid>
      <dc:creator>desertsp</dc:creator>
      <dc:date>2018-07-26T17:28:00Z</dc:date>
    </item>
  </channel>
</rss>

