<?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: SAS 9.4 batch mode message in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/SAS-9-4-batch-mode-message/m-p/752906#M237206</link>
    <description>&lt;P&gt;DM commands are most likely the source of that message.&amp;nbsp; If you are using a recent release of SAS you can wrap those lines in %IF code to prevent them from running when DMS is not active.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%if %sysfunc(getoption(dms))=DMS %then %do;
  DM "CLEAR LOG";
  DM "CLEAR OUTPUT";
  DM 'ODSRESULTS; CLEAR'
%end;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;When I run SAS programs I type the command sas followed by the filename.&lt;/P&gt;
&lt;PRE&gt;sas myfile.sas&lt;/PRE&gt;
&lt;P&gt;How did you run the "batch" mode job on your machine?&amp;nbsp; Did you click on something? What?&lt;/P&gt;</description>
    <pubDate>Thu, 08 Jul 2021 15:50:31 GMT</pubDate>
    <dc:creator>Tom</dc:creator>
    <dc:date>2021-07-08T15:50:31Z</dc:date>
    <item>
      <title>SAS 9.4 batch mode message</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-9-4-batch-mode-message/m-p/752879#M237189</link>
      <description>&lt;P&gt;I am not sure, this question can be asked here. I am running a table program in batch mode. Unfortunately I am getting this message. I am not sure What causing the message. Any suggestions or what causing the issue?&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="SASuserlot_0-1625755254866.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/61065iC4C61086F37CBA43/image-size/medium?v=v2&amp;amp;px=400" role="button" title="SASuserlot_0-1625755254866.png" alt="SASuserlot_0-1625755254866.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 08 Jul 2021 14:41:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-9-4-batch-mode-message/m-p/752879#M237189</guid>
      <dc:creator>SASuserlot</dc:creator>
      <dc:date>2021-07-08T14:41:28Z</dc:date>
    </item>
    <item>
      <title>Re: SAS 9.4 batch mode message</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-9-4-batch-mode-message/m-p/752880#M237190</link>
      <description>&lt;P&gt;What does your code do? Can you show us the code (if it's not too long)?&lt;/P&gt;</description>
      <pubDate>Thu, 08 Jul 2021 14:43:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-9-4-batch-mode-message/m-p/752880#M237190</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2021-07-08T14:43:42Z</dc:date>
    </item>
    <item>
      <title>Re: SAS 9.4 batch mode message</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-9-4-batch-mode-message/m-p/752881#M237191</link>
      <description>&lt;P&gt;Is your code trying to run any Display Manager commands by using the DM statement?&lt;/P&gt;
&lt;P&gt;Is it trying to use an WINDOW or %WINDOW commands to open an pop-up window to the user?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Looks like you are not just running in "batch" mode but also also running without DMS.&lt;/P&gt;
&lt;P&gt;Please show the operating system command you used to run the SAS program.&lt;/P&gt;</description>
      <pubDate>Thu, 08 Jul 2021 14:44:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-9-4-batch-mode-message/m-p/752881#M237191</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2021-07-08T14:44:06Z</dc:date>
    </item>
    <item>
      <title>Re: SAS 9.4 batch mode message</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-9-4-batch-mode-message/m-p/752895#M237198</link>
      <description>&lt;P&gt;Unfortunately its long code,&amp;nbsp; However, Most of the code is general code ( set, merge, transpose, freq, sql) which is not affecting ( unfortunately its long code can submit everything here). But I have the code to clear&amp;nbsp; the output, log, ods results, kill datasets. using DM statements is this affecting?&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;DM "CLEAR LOG";
DM "CLEAR OUTPUT";
DM 'ODSRESULTS; CLEAR';
PROC DATASETS LIB=WORK MEMTYPE = DATA KILL NOLIST; QUIT;
OPTIONS NOFMTERR ERRORS=2 MISSING=' ' MSGLEVEL=I  VALIDVARNAME=UPCASE ;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 08 Jul 2021 15:20:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-9-4-batch-mode-message/m-p/752895#M237198</guid>
      <dc:creator>SASuserlot</dc:creator>
      <dc:date>2021-07-08T15:20:53Z</dc:date>
    </item>
    <item>
      <title>Re: SAS 9.4 batch mode message</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-9-4-batch-mode-message/m-p/752897#M237200</link>
      <description>&lt;P&gt;You are&amp;nbsp; right I am writing code using dm statement.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;DM "CLEAR LOG";
DM "CLEAR OUTPUT";
DM 'ODSRESULTS; CLEAR';
PROC DATASETS LIB=WORK MEMTYPE = DATA KILL NOLIST; QUIT;
OPTIONS NOFMTERR ERRORS=2 MISSING=' ' MSGLEVEL=I  VALIDVARNAME=UPCASE ;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;I really don't know how to show this "&lt;SPAN&gt;Please show the operating system command you used to run the SAS program". I really appreciate if you can guide me how to get this information!&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 08 Jul 2021 15:25:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-9-4-batch-mode-message/m-p/752897#M237200</guid>
      <dc:creator>SASuserlot</dc:creator>
      <dc:date>2021-07-08T15:25:57Z</dc:date>
    </item>
    <item>
      <title>Re: SAS 9.4 batch mode message</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-9-4-batch-mode-message/m-p/752906#M237206</link>
      <description>&lt;P&gt;DM commands are most likely the source of that message.&amp;nbsp; If you are using a recent release of SAS you can wrap those lines in %IF code to prevent them from running when DMS is not active.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%if %sysfunc(getoption(dms))=DMS %then %do;
  DM "CLEAR LOG";
  DM "CLEAR OUTPUT";
  DM 'ODSRESULTS; CLEAR'
%end;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;When I run SAS programs I type the command sas followed by the filename.&lt;/P&gt;
&lt;PRE&gt;sas myfile.sas&lt;/PRE&gt;
&lt;P&gt;How did you run the "batch" mode job on your machine?&amp;nbsp; Did you click on something? What?&lt;/P&gt;</description>
      <pubDate>Thu, 08 Jul 2021 15:50:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-9-4-batch-mode-message/m-p/752906#M237206</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2021-07-08T15:50:31Z</dc:date>
    </item>
    <item>
      <title>Re: SAS 9.4 batch mode message</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-9-4-batch-mode-message/m-p/752980#M237246</link>
      <description>&lt;P&gt;we do&amp;nbsp; by right click on program, then it will gives the option for batch mode.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="SASuserlot_0-1625771768670.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/61078iF8E9077342B3BB0A/image-size/medium?v=v2&amp;amp;px=400" role="button" title="SASuserlot_0-1625771768670.png" alt="SASuserlot_0-1625771768670.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 08 Jul 2021 19:16:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-9-4-batch-mode-message/m-p/752980#M237246</guid>
      <dc:creator>SASuserlot</dc:creator>
      <dc:date>2021-07-08T19:16:26Z</dc:date>
    </item>
    <item>
      <title>Re: SAS 9.4 batch mode message</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-9-4-batch-mode-message/m-p/752986#M237249</link>
      <description>&lt;P&gt;this worked. Thanks&lt;/P&gt;</description>
      <pubDate>Thu, 08 Jul 2021 19:31:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-9-4-batch-mode-message/m-p/752986#M237249</guid>
      <dc:creator>SASuserlot</dc:creator>
      <dc:date>2021-07-08T19:31:36Z</dc:date>
    </item>
  </channel>
</rss>

