<?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 Way of catch &amp;quot;Batch Mode&amp;quot; or &amp;quot;Interactive mode&amp;quot; in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Way-of-catch-quot-Batch-Mode-quot-or-quot-Interactive-mode-quot/m-p/300597#M63497</link>
    <description>&lt;P&gt;While the program is running, whether it is an execute by interactive mode or batch submit, is there any way to get by batch mode or interactive mode?&lt;/P&gt;&lt;P&gt;Though the programmer is know it by his eyes or operation.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For example,these codes which you run in a batch submit, there is a little a problem.(a window is shown.)&lt;/P&gt;&lt;P&gt;dm "output; clear; odsresults; clear;";&lt;/P&gt;&lt;P&gt;&lt;A href="http://support.sas.com/kb/44/705.html" target="_blank"&gt;http://support.sas.com/kb/44/705.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;To avoid this, I would want to get my "run;" is by batch submit or interactive mode for make "If statement ".&lt;/P&gt;&lt;P&gt;If "&amp;amp;mode_now" know this,I would make these "if branching".&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;%if &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;amp;mode_now = "batch" %then %do;&lt;BR /&gt;%end;&lt;BR /&gt;%else %if &amp;amp;mode_now = "interactive" %then %do;&lt;BR /&gt;dm "output; clear; odsresults; clear;";&lt;BR /&gt;%end;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best Regards!&lt;/P&gt;</description>
    <pubDate>Sun, 25 Sep 2016 10:00:24 GMT</pubDate>
    <dc:creator>t_ar_taat</dc:creator>
    <dc:date>2016-09-25T10:00:24Z</dc:date>
    <item>
      <title>Way of catch "Batch Mode" or "Interactive mode"</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Way-of-catch-quot-Batch-Mode-quot-or-quot-Interactive-mode-quot/m-p/300597#M63497</link>
      <description>&lt;P&gt;While the program is running, whether it is an execute by interactive mode or batch submit, is there any way to get by batch mode or interactive mode?&lt;/P&gt;&lt;P&gt;Though the programmer is know it by his eyes or operation.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For example,these codes which you run in a batch submit, there is a little a problem.(a window is shown.)&lt;/P&gt;&lt;P&gt;dm "output; clear; odsresults; clear;";&lt;/P&gt;&lt;P&gt;&lt;A href="http://support.sas.com/kb/44/705.html" target="_blank"&gt;http://support.sas.com/kb/44/705.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;To avoid this, I would want to get my "run;" is by batch submit or interactive mode for make "If statement ".&lt;/P&gt;&lt;P&gt;If "&amp;amp;mode_now" know this,I would make these "if branching".&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;%if &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;amp;mode_now = "batch" %then %do;&lt;BR /&gt;%end;&lt;BR /&gt;%else %if &amp;amp;mode_now = "interactive" %then %do;&lt;BR /&gt;dm "output; clear; odsresults; clear;";&lt;BR /&gt;%end;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best Regards!&lt;/P&gt;</description>
      <pubDate>Sun, 25 Sep 2016 10:00:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Way-of-catch-quot-Batch-Mode-quot-or-quot-Interactive-mode-quot/m-p/300597#M63497</guid>
      <dc:creator>t_ar_taat</dc:creator>
      <dc:date>2016-09-25T10:00:24Z</dc:date>
    </item>
    <item>
      <title>Re: Way of catch "Batch Mode" or "Interactive mode"</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Way-of-catch-quot-Batch-Mode-quot-or-quot-Interactive-mode-quot/m-p/300603#M63500</link>
      <description>&lt;P&gt;SYSENV macro variable?&lt;/P&gt;
&lt;P&gt;&lt;A href="http://support.sas.com/documentation/cdl/en/mcrolref/61885/HTML/default/viewer.htm#a000543674.htm" target="_blank"&gt;http://support.sas.com/documentation/cdl/en/mcrolref/61885/HTML/default/viewer.htm#a000543674.htm&lt;/A&gt;&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;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 25 Sep 2016 11:01:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Way-of-catch-quot-Batch-Mode-quot-or-quot-Interactive-mode-quot/m-p/300603#M63500</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2016-09-25T11:01:58Z</dc:date>
    </item>
    <item>
      <title>Re: Way of catch "Batch Mode" or "Interactive mode"</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Way-of-catch-quot-Batch-Mode-quot-or-quot-Interactive-mode-quot/m-p/300750#M63568</link>
      <description>&lt;P&gt;Hi,Reeza.&lt;BR /&gt;Thank you so much your kindness everytime!&lt;BR /&gt;I confirm that &amp;amp;SYSENV would work what I want to grasp with the value "FORE" or "BACE".&lt;/P&gt;</description>
      <pubDate>Mon, 26 Sep 2016 13:30:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Way-of-catch-quot-Batch-Mode-quot-or-quot-Interactive-mode-quot/m-p/300750#M63568</guid>
      <dc:creator>t_ar_taat</dc:creator>
      <dc:date>2016-09-26T13:30:15Z</dc:date>
    </item>
    <item>
      <title>Re: Way of catch "Batch Mode" or "Interactive mode"</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Way-of-catch-quot-Batch-Mode-quot-or-quot-Interactive-mode-quot/m-p/300759#M63570</link>
      <description>&lt;P&gt;Probably better to use DMS settng since you are explicitely using DM command.&lt;/P&gt;
&lt;P&gt;It is possble to have SYSENV=FORE and NODMS.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;NOTE: SAS initialization used:
      real time           0.14 seconds
      cpu time            0.02 seconds
      
  1? %put &amp;amp;sysenv %sysfunc(getoption(dms)) ;

FORE NODMS

  2? 
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 26 Sep 2016 13:59:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Way-of-catch-quot-Batch-Mode-quot-or-quot-Interactive-mode-quot/m-p/300759#M63570</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2016-09-26T13:59:12Z</dc:date>
    </item>
    <item>
      <title>Re: Way of catch "Batch Mode" or "Interactive mode"</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Way-of-catch-quot-Batch-Mode-quot-or-quot-Interactive-mode-quot/m-p/300760#M63571</link>
      <description>Thank you Tom,I never know "DMS" and "NODMS".I'll someday use this knowledge &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;</description>
      <pubDate>Mon, 26 Sep 2016 14:09:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Way-of-catch-quot-Batch-Mode-quot-or-quot-Interactive-mode-quot/m-p/300760#M63571</guid>
      <dc:creator>t_ar_taat</dc:creator>
      <dc:date>2016-09-26T14:09:29Z</dc:date>
    </item>
    <item>
      <title>Re: Way of catch "Batch Mode" or "Interactive mode"</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Way-of-catch-quot-Batch-Mode-quot-or-quot-Interactive-mode-quot/m-p/401050#M97242</link>
      <description>&lt;P&gt;Just a warning that if you batch submit on Windows, &amp;amp;SYSENV =&amp;nbsp;FORE.&amp;nbsp;&amp;nbsp;I've been burnt by this many times.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The docs mention this:&lt;/P&gt;
&lt;P&gt;&lt;SPAN class="strong"&gt;Operating Environment Information:&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;Some operating environments do not support the submission of jobs in batch mode. In this case the value of SYSENV is always FORE. For details, see the SAS documentation for your operating environment&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;From the docs, looks like on Windows the only setup that gives you &amp;amp;SYSENV=BACK is Enterprise Guide.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 04 Oct 2017 16:54:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Way-of-catch-quot-Batch-Mode-quot-or-quot-Interactive-mode-quot/m-p/401050#M97242</guid>
      <dc:creator>Quentin</dc:creator>
      <dc:date>2017-10-04T16:54:04Z</dc:date>
    </item>
  </channel>
</rss>

