<?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: What exactly is the difference between SAS Noninteractive Mode and SAS Batch Mode? in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/What-exactly-is-the-difference-between-SAS-Noninteractive-Mode/m-p/865120#M341631</link>
    <description>&lt;P&gt;I suspect that they are trying to distinguish between a running mode where your "terminal" is tied up waiting for the SAS job to finish ("non interactive") and where it is not ("batch").&amp;nbsp; In Unix you could essentially make this difference by appending the &amp;amp; symbol to the end of the command line.&amp;nbsp; What the difference would be in Windows or CMS or TSO I am not sure.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you really want to run "batch" then leave your card deck at the communications window and the operator will run it through the machine and return your card deck with your printout to the output bin.&lt;/P&gt;</description>
    <pubDate>Sun, 19 Mar 2023 22:19:03 GMT</pubDate>
    <dc:creator>Tom</dc:creator>
    <dc:date>2023-03-19T22:19:03Z</dc:date>
    <item>
      <title>What exactly is the difference between SAS Noninteractive Mode and SAS Batch Mode?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/What-exactly-is-the-difference-between-SAS-Noninteractive-Mode/m-p/865116#M341628</link>
      <description>&lt;P&gt;According to the official SAS documentation, SAS can be started in 4 different modes:&lt;/P&gt;&lt;P&gt;1. Windows Environment Mode&lt;/P&gt;&lt;P&gt;2. Interactive Mode&lt;/P&gt;&lt;P&gt;3. Batch Mode&lt;/P&gt;&lt;P&gt;4. Noninteractive Mode&lt;/P&gt;&lt;P&gt;(Note that I am only talking about SAS 9.4 Foundation without any extensions like SAS/Connect or SAS/Assist etc)&lt;/P&gt;&lt;P&gt;These 4 modes to run SAS are clearly stated here:&lt;/P&gt;&lt;P&gt;Link1: &lt;A href="https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/basess/n0m73k6z00uxp6n11imjuvxkaml4.htm" target="_blank" rel="noopener"&gt;https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/basess/n0m73k6z00uxp6n11imjuvxkaml4.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Note that in this chapter, there are different sub-chapters for 'batch mode' and 'noninteractive mode'.&lt;/P&gt;&lt;P&gt;This clearly implies that these are TWO DIFFERENT ways to run SAS.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Problem is, I only know of three SAS modes, which are the following (I am talking about Unix as the Host System for the SAS Installation)&lt;/P&gt;&lt;P&gt;1)&lt;/P&gt;&lt;PRE&gt;sas -dms&lt;/PRE&gt;&lt;P&gt;Submitting this command in a shell invokes SAS in Windows Environment Mode. No questions here. I know what happens.&lt;/P&gt;&lt;P&gt;2)&lt;/P&gt;&lt;PRE&gt;sas -nodms&lt;/PRE&gt;&lt;P&gt;This invokes SAS in Interactive Mode. No questions here.I know what happens after submitting this command in a shell.&lt;/P&gt;&lt;P&gt;3)&lt;/P&gt;&lt;PRE&gt;sas myprg.sas     or&lt;BR /&gt;sas myprg.sas &amp;amp; (background processing)&lt;/PRE&gt;&lt;P&gt;According to some other chapters of the offical SAS- doc, this is the batch mode, see this link&lt;/P&gt;&lt;P&gt;Link 2:&lt;/P&gt;&lt;P&gt;&lt;A href="https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/hostunx/n0x9esc5c95qg4n1wogx5u2k7354.htm" target="_blank" rel="noopener"&gt;https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/hostunx/n0x9esc5c95qg4n1wogx5u2k7354.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Note that it doesn't matter whether the command is typed manually or scheduled by crontab, it is called batch mode&lt;/P&gt;&lt;P&gt;in both cases.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So the remaining question is: what EXACTLY is the 4th remaining mode (noninteractive mode) and how exactly do i start it in SAS under unix?&lt;/P&gt;&lt;P&gt;Then again, SAS itself provides contradictory information. According to this chapter&lt;/P&gt;&lt;P&gt;Link 3:&lt;/P&gt;&lt;P&gt;&lt;A href="https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/lepg/n1fwnau3atsmlan1x7aroikebtlt.htm" target="_blank" rel="noopener"&gt;https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/hostunx/n0x9esc5c95qg4n1wogx5u2k7354.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;there is NO DISTINCTION&lt;/P&gt;&lt;P&gt;made between bash mode and noninteractive mode, in fact neither of them are listed, but instead there is a mode&lt;/P&gt;&lt;P&gt;listed called "Non-interactive batch mode".&amp;nbsp; So this could imply, there are in fact no 4 modes, but 3:&lt;/P&gt;&lt;P&gt;Windowing Env. Mode, Interactive Mode and Batch Mode (which by nature is non-interactive).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But then again, in a 4th chapter about all these modes, batch mode and noninteractive mode are&lt;/P&gt;&lt;P&gt;documented as different modes again:&lt;/P&gt;&lt;P&gt;Link 4:&lt;/P&gt;&lt;P&gt;&lt;A href="https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/basess/p1kxww6uew143an1rbqyopwl0bgx.htm" target="_blank" rel="noopener"&gt;https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/basess/p1kxww6uew143an1rbqyopwl0bgx.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This doesn't make sense to me. The only explanation is that Link 3 refers specifically to SAS under Unix,&lt;/P&gt;&lt;P&gt;so maybe under unix there are only 3 modes, but on different OS, there are 4 modes?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can anybody enlighten me? What is the difference, if any, between bash mode and noninteractive mode?&lt;/P&gt;&lt;P&gt;And how exactly do you start them in Unix? Please be specific, the explanations in the docs are too vague&lt;/P&gt;&lt;P&gt;and 80% the same for bash mode and noninteractive mode.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 19 Mar 2023 20:59:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/What-exactly-is-the-difference-between-SAS-Noninteractive-Mode/m-p/865116#M341628</guid>
      <dc:creator>mike_bn</dc:creator>
      <dc:date>2023-03-19T20:59:19Z</dc:date>
    </item>
    <item>
      <title>Re: What exactly is the difference between SAS Noninteractive Mode and SAS Batch Mode?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/What-exactly-is-the-difference-between-SAS-Noninteractive-Mode/m-p/865120#M341631</link>
      <description>&lt;P&gt;I suspect that they are trying to distinguish between a running mode where your "terminal" is tied up waiting for the SAS job to finish ("non interactive") and where it is not ("batch").&amp;nbsp; In Unix you could essentially make this difference by appending the &amp;amp; symbol to the end of the command line.&amp;nbsp; What the difference would be in Windows or CMS or TSO I am not sure.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you really want to run "batch" then leave your card deck at the communications window and the operator will run it through the machine and return your card deck with your printout to the output bin.&lt;/P&gt;</description>
      <pubDate>Sun, 19 Mar 2023 22:19:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/What-exactly-is-the-difference-between-SAS-Noninteractive-Mode/m-p/865120#M341631</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2023-03-19T22:19:03Z</dc:date>
    </item>
    <item>
      <title>Re: What exactly is the difference between SAS Noninteractive Mode and SAS Batch Mode?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/What-exactly-is-the-difference-between-SAS-Noninteractive-Mode/m-p/865121#M341632</link>
      <description>&lt;P&gt;I've never heard of Noninteractive mode.&amp;nbsp; I wonder if it's only a z/OS thing.&amp;nbsp; I checked SAS Companion for Windows, and SAS Companion for Unix, and couldn't find a reference to it.&amp;nbsp; But it is mentioned a few times in SAS Companion for z/OS, e.g.&amp;nbsp;&lt;A href="https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/hosto390/p0m1fwogu1px51n16i7cfy7zugzk.htm" target="_blank"&gt;https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/hosto390/p0m1fwogu1px51n16i7cfy7zugzk.htm&lt;/A&gt;&amp;nbsp;.&lt;/P&gt;</description>
      <pubDate>Sun, 19 Mar 2023 22:30:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/What-exactly-is-the-difference-between-SAS-Noninteractive-Mode/m-p/865121#M341632</guid>
      <dc:creator>Quentin</dc:creator>
      <dc:date>2023-03-19T22:30:29Z</dc:date>
    </item>
    <item>
      <title>Re: What exactly is the difference between SAS Noninteractive Mode and SAS Batch Mode?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/What-exactly-is-the-difference-between-SAS-Noninteractive-Mode/m-p/865123#M341633</link>
      <description>&lt;P&gt;My take is that non-interactive mode and immediately-running batch mode without Unix &amp;amp; are pretty much synonymous. I do remember back in the day of being able run SAS programs in a file list / editor screen by typing "run" or "ex' etc as opposed to a command line. This was in CMS.&lt;/P&gt;</description>
      <pubDate>Sun, 19 Mar 2023 23:09:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/What-exactly-is-the-difference-between-SAS-Noninteractive-Mode/m-p/865123#M341633</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2023-03-19T23:09:54Z</dc:date>
    </item>
    <item>
      <title>Re: What exactly is the difference between SAS Noninteractive Mode and SAS Batch Mode?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/What-exactly-is-the-difference-between-SAS-Noninteractive-Mode/m-p/865132#M341639</link>
      <description>&lt;P&gt;Thanks to all of you.&lt;/P&gt;&lt;P&gt;I also feel that maybe a clear distinction between non-interactive mode and batch mode only exists in z/OS (which I don't know at all). As one of you said, 'non-interactive mode' is only mentioned in the general doc and in the companion for z/OS and not for unix/windows. I feel that in Unix, there is only batch mode, which is always non-interactive, in my opinion. Like one of you said, one could argue that if you submit the command in a terminal without &amp;amp; it is even 'more' non-interactive, because you cannot do anything at all, while with &amp;amp; you can continue working doing other stuff. But imo, the term 'non-interactive' refers to SAS, and not the terminal, and&amp;nbsp; (in most cases) one cannot interact with the SAS-session you started with 'sas xxx.sas', no matter whether you used &amp;amp; or not. So I feel there is only one mode in Unix, which can be called 'non-interactive batch mode' and this is the exact term that is used in one chapter (see one of my links in my first post).&lt;/P&gt;</description>
      <pubDate>Mon, 20 Mar 2023 06:27:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/What-exactly-is-the-difference-between-SAS-Noninteractive-Mode/m-p/865132#M341639</guid>
      <dc:creator>mike_bn</dc:creator>
      <dc:date>2023-03-20T06:27:33Z</dc:date>
    </item>
    <item>
      <title>Re: What exactly is the difference between SAS Noninteractive Mode and SAS Batch Mode?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/What-exactly-is-the-difference-between-SAS-Noninteractive-Mode/m-p/865169#M341647</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;
&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/121126"&gt;@mike_bn&lt;/a&gt;&amp;nbsp;wrote:&lt;/P&gt;
&lt;P&gt;So I feel there is only one mode in Unix, which can be called 'non-interactive batch mode' and this is the exact term that is used in one chapter (see one of my links in my first post).&lt;/P&gt;
&lt;HR /&gt;
&lt;P&gt;&lt;BR /&gt;Unix does offer an interactive mode, similar to interactive mode on Windows.&amp;nbsp; See&amp;nbsp;&lt;A href="https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/hostunx/n100yzpgdlgqtjn17rrkpzoop542.htm" target="_blank"&gt;https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/hostunx/n100yzpgdlgqtjn17rrkpzoop542.htm&lt;/A&gt;.&amp;nbsp; I think most folks consider SAS having two modes: interactive and batch.&amp;nbsp; But there are some grey areas.&lt;/P&gt;</description>
      <pubDate>Mon, 20 Mar 2023 11:02:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/What-exactly-is-the-difference-between-SAS-Noninteractive-Mode/m-p/865169#M341647</guid>
      <dc:creator>Quentin</dc:creator>
      <dc:date>2023-03-20T11:02:29Z</dc:date>
    </item>
    <item>
      <title>Re: What exactly is the difference between SAS Noninteractive Mode and SAS Batch Mode?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/What-exactly-is-the-difference-between-SAS-Noninteractive-Mode/m-p/865175#M341649</link>
      <description>&lt;P&gt;Of course I am fully aware of the addtional modes 'interactive mode' and 'window environment mode' in unix. I listed them both in my first post for completeness sake. When I wrote&amp;nbsp; just one mode (in Unix), I meant that bash mode and&lt;/P&gt;&lt;P&gt;noninteractive mode are the same (in unix) and not two different modes and for that reason the doc sometimes call&lt;/P&gt;&lt;P&gt;it 'noninteractive bash mode' (again: just talking about unix, on other OS (z/OS), there might be a difference between&lt;/P&gt;&lt;P&gt;noninteractive mode and bash mode as in some parts the doc differentiates between these modes)&lt;/P&gt;</description>
      <pubDate>Mon, 20 Mar 2023 11:49:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/What-exactly-is-the-difference-between-SAS-Noninteractive-Mode/m-p/865175#M341649</guid>
      <dc:creator>mike_bn</dc:creator>
      <dc:date>2023-03-20T11:49:31Z</dc:date>
    </item>
    <item>
      <title>Re: What exactly is the difference between SAS Noninteractive Mode and SAS Batch Mode?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/What-exactly-is-the-difference-between-SAS-Noninteractive-Mode/m-p/865184#M341653</link>
      <description>&lt;P&gt;Batch is not really a good name for the normal non-display manager mode of running on Unix.&amp;nbsp; In Unix I would call such a process a background process, it is running as a child of your process, but not interacting with your current terminal with stdin and stdout.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I would reserve "batch" for when you actually submit the job via CRON or some other scheduling tool like LSF.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Note that even if you run a process in background it can still use AF or simple WINDOW statement to pop open a X window and interact with you.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Perhaps if you are running a SAS process in the background with the -noterminal option then perhaps that is more non-interactive.&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Or if you run with the -stdio option so that it takes commands from the stdin and writes the&amp;nbsp; log and listing output to stdout and stderr then perhaps you could call that non-interactive?&lt;/P&gt;</description>
      <pubDate>Mon, 20 Mar 2023 12:57:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/What-exactly-is-the-difference-between-SAS-Noninteractive-Mode/m-p/865184#M341653</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2023-03-20T12:57:45Z</dc:date>
    </item>
    <item>
      <title>Re: What exactly is the difference between SAS Noninteractive Mode and SAS Batch Mode?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/What-exactly-is-the-difference-between-SAS-Noninteractive-Mode/m-p/865237#M341676</link>
      <description>&lt;P&gt;Hi Tom,&lt;/P&gt;&lt;P&gt;thank for your patience and the replies. Before I started reading the SAS doc, my (rough) understanding of what&lt;/P&gt;&lt;P&gt;a batch job is was similar to yours and I think many share this understanding. Unlike SAS it seems, I quote from this link:&lt;/P&gt;&lt;P&gt;&lt;A href="https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/hostunx/n0x9esc5c95qg4n1wogx5u2k7354.htm" target="_blank" rel="noopener"&gt;https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/hostunx/n0x9esc5c95qg4n1wogx5u2k7354.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;"To run SAS in batch mode, you specify your SAS program name in the SAS invocation command. &lt;STRONG&gt;You can run batch mode in the foreground, in the background by specifying an ampersand at the end of the SAS command, or submit your application&lt;/STRONG&gt; to the batch queue by using the &lt;CODE class=""&gt;batch&lt;/CODE&gt;, &lt;CODE class=""&gt;at&lt;/CODE&gt;, &lt;CODE class=""&gt;nohup&lt;/CODE&gt;, or &lt;CODE class=""&gt;cron&lt;/CODE&gt; UNIX commands. (For more information, see the UNIX man pages for the &lt;CODE class=""&gt;batch&lt;/CODE&gt;, &lt;CODE class=""&gt;at&lt;/CODE&gt;, &lt;CODE class=""&gt;nohup&lt;/CODE&gt;, or &lt;CODE class=""&gt;cron&lt;/CODE&gt; commands.) If you start your application with one of these UNIX commands and you log off from your system, then your application completes execution. If your application contains statements that start an interactive procedure such as FSEDIT, then you need to run your batch application in the foreground or you need to specify the &lt;SPAN class=""&gt;–noterminal&lt;/SPAN&gt; option."&lt;/P&gt;&lt;P&gt;and, in addition, for 'invoking SAS in batch mode' they provide this example&lt;/P&gt;&lt;P&gt;' you would enter the following command'&lt;/P&gt;&lt;PRE&gt;sas weekly.sas -nodate -linesize 90&lt;/PRE&gt;&lt;P&gt;'The command would run the program in the foreground. If you want to run the program in the background, add the ampersand to the end of the command'&lt;/P&gt;&lt;PRE&gt;sas weekly.sas -nodate -linesize 90 &amp;amp;&lt;/PRE&gt;&lt;P&gt;So, for them, it is also batch mode. I am still inclined to agree with you and NOT call this batch mode,&lt;/P&gt;&lt;P&gt;when I submit this command after logging in with some terminal emulator to the unix machine and typing this commands and hitting enter.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What do you think about this understanding/definition:&lt;/P&gt;&lt;P&gt;1)&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;sas noninteract.sas  &lt;/PRE&gt;&lt;P&gt;entered in the shell (after logging to the unix machine with some terminal emulator like SecureCRT)&lt;/P&gt;&lt;P&gt;-&amp;gt; This starts SAS in non-interactive mode (lets assume noninteract.sas has no statements that require user input)&lt;/P&gt;&lt;P&gt;2)&lt;/P&gt;&lt;PRE&gt;sas noninteract.sas &amp;amp; &lt;/PRE&gt;&lt;P&gt;Same as 1) , so also non-interactive mode, with the only difference that because of the &amp;amp;, the process runs in the&lt;/P&gt;&lt;P&gt;background&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;3) I have a shellskript&amp;nbsp;&lt;STRONG&gt; noninteract.sh&lt;/STRONG&gt; with just one command in it which is&lt;/P&gt;&lt;PRE&gt;sas noninteract.sas  &lt;/PRE&gt;&lt;P&gt;And noninteract.sh is scheduled by crontab (or any other scheduler)&lt;/P&gt;&lt;P&gt;-&amp;gt; SAS runs as a batch job (and is non-interactive - which typically is the case for any batch job)&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;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 20 Mar 2023 15:19:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/What-exactly-is-the-difference-between-SAS-Noninteractive-Mode/m-p/865237#M341676</guid>
      <dc:creator>mike_bn</dc:creator>
      <dc:date>2023-03-20T15:19:50Z</dc:date>
    </item>
    <item>
      <title>Re: What exactly is the difference between SAS Noninteractive Mode and SAS Batch Mode?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/What-exactly-is-the-difference-between-SAS-Noninteractive-Mode/m-p/865248#M341683</link>
      <description>&lt;P&gt;As SAS is run on many operating systems, and many clients, I don't think the definition of interactive vs batch should vary by operation system.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Maybe it's because I started on Windows, but I like the simple definition of "interactive" means I have an interface (typically a GUI) which allows me to interact with a SAS session (meaning write and submit code).&amp;nbsp; So I can submit a step, look at the results, submit another step, etc.&amp;nbsp; "Batch" means I submit a SAS program and a fresh SAS session is created, the program runs to completion, and the SAS session ends.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So Display Manager, EG, Studio are all interactive.&amp;nbsp; Actually, Studio does have a feature to submit a&amp;nbsp; "background job", which I would have called "batch submit."&amp;nbsp; DI Studio I think maintains a SAS session open while a job is open for editing, so I would call it interactive.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I agree with the documentation that&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;sas weekly.sas -nodate -linesize 90&lt;/PRE&gt;
&lt;P&gt;and&lt;/P&gt;
&lt;PRE&gt;sas weekly.sas -nodate -linesize 90 &amp;amp;&lt;/PRE&gt;
&lt;P&gt;are both appropriately called "batch".&amp;nbsp; I would also call a scheduled job a batch job, and would probably call a stored process run through stored process web app a batch submission as well.&lt;/P&gt;</description>
      <pubDate>Mon, 20 Mar 2023 16:02:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/What-exactly-is-the-difference-between-SAS-Noninteractive-Mode/m-p/865248#M341683</guid>
      <dc:creator>Quentin</dc:creator>
      <dc:date>2023-03-20T16:02:53Z</dc:date>
    </item>
    <item>
      <title>Re: What exactly is the difference between SAS Noninteractive Mode and SAS Batch Mode?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/What-exactly-is-the-difference-between-SAS-Noninteractive-Mode/m-p/865254#M341686</link>
      <description>&lt;P&gt;Thank you Quentin for your answer!&lt;/P&gt;&lt;P&gt;It is probably not worth wasting more of your and other responders time to dwell on that topic&lt;/P&gt;&lt;P&gt;any longer, its just semantics, after all. Just two quick comments&lt;/P&gt;&lt;P&gt;1) As I stated multiple time, my question had nothing to do with interactive modes. I know how to&lt;/P&gt;&lt;P&gt;invoke them and what they are. I just listed them for completeness sake. My question came up&lt;/P&gt;&lt;P&gt;as in some chapters, the SAS doc explicitly states that (apart from interactive modes) two more DIFFERENT SAS execution modes exist: Non-interactive mode and Batch mode.&amp;nbsp; Two different, distinct modes. So far, no user was able to give a clear answer if this is also true for Unix, and if yes, provide a precise defintion and how to invoke them. Which makes me assume it is not the case for Unix. Imo, in addition to the clear interactive modes (Windows Environment Mode and interactive line mode) there is only one additional third mode. This is invoked by&amp;nbsp;&amp;nbsp; 'sas&amp;nbsp; mysasprg.sas' or 'sas -sysin mysasprg.sas'&amp;nbsp; (plus potential options), either by submitting it from the shell command line or scheduled by some scheduler like Cron.&amp;nbsp; If mysasprg.sas contains no statements that require user input, this mode is clearly non-interactive. Also the &amp;amp; is irrelevant, it only steers whether the process runs in the foreground or in the background. Whether you also always call this 3rd mode a batch mode or only if it is scheduled (by cron or some other scheduler) seems to depend on what your understanding of a batch job is. When I google 'what is a batch job' almost all definitions contain the point that a batch job is scheduled, but maybe there is no clear definition.&lt;/P&gt;&lt;P&gt;2)&amp;nbsp; Your comments about DIS, EG, Studio etc. are all correct, they are interactive, but I am just talking about BASE SAS and the confusion about batch mode and non-interactive mode.&lt;/P&gt;</description>
      <pubDate>Mon, 20 Mar 2023 16:30:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/What-exactly-is-the-difference-between-SAS-Noninteractive-Mode/m-p/865254#M341686</guid>
      <dc:creator>mike_bn</dc:creator>
      <dc:date>2023-03-20T16:30:25Z</dc:date>
    </item>
    <item>
      <title>Re: What exactly is the difference between SAS Noninteractive Mode and SAS Batch Mode?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/What-exactly-is-the-difference-between-SAS-Noninteractive-Mode/m-p/865259#M341687</link>
      <description>&lt;P&gt;I think the problem is the attempt make some distinction between a "batch" mode and a "non-interactive" mode.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;As is normal with computer terminology existing words are adopted and attached to very specific concepts that have only a passing relationship with the ordinary meaning of those words.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;BATCH is a pretty well defined concept in computers (at least to us old timers) and is not the same as just running a program.&amp;nbsp; Just running a program at the terminal is not batch.&amp;nbsp; I don't call it "batch" if I run a compiler.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;When I ran SAS from the REXX text editor on a VM/CMS machine I was not running a "batch" job.&amp;nbsp; The editor script would save the program file and use SAS to run the program.&amp;nbsp; That was a "non-interactive" run if you will.&amp;nbsp; So are those that use similar scripts in EMACS to do the same thing on UNIX systems.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you have a JOB card you are submitting a batch job.&amp;nbsp; Tools like LSF are using batch queues to run jobs.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;When I ran SAS from the WYLBER editor on a MVS system in the 1980's the files I submitted to run had JOB cards are were sent to be batch run.&amp;nbsp; That was running in batch.&lt;/P&gt;</description>
      <pubDate>Mon, 20 Mar 2023 16:37:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/What-exactly-is-the-difference-between-SAS-Noninteractive-Mode/m-p/865259#M341687</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2023-03-20T16:37:52Z</dc:date>
    </item>
    <item>
      <title>Re: What exactly is the difference between SAS Noninteractive Mode and SAS Batch Mode?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/What-exactly-is-the-difference-between-SAS-Noninteractive-Mode/m-p/865261#M341688</link>
      <description>&lt;P&gt;SAS/Studio is not running SAS interactively.&amp;nbsp; SAS Studio is interactive, but it is submitting the SAS code in short non-interactive submissions to an independent process that is actually running SAS. I call it pseudo interactive since the sessions remains active between submissions so you are not starting a new SAS session with every submission.&lt;/P&gt;</description>
      <pubDate>Mon, 20 Mar 2023 16:43:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/What-exactly-is-the-difference-between-SAS-Noninteractive-Mode/m-p/865261#M341688</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2023-03-20T16:43:24Z</dc:date>
    </item>
    <item>
      <title>Re: What exactly is the difference between SAS Noninteractive Mode and SAS Batch Mode?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/What-exactly-is-the-difference-between-SAS-Noninteractive-Mode/m-p/865262#M341689</link>
      <description>&lt;P&gt;I think we're on the same page.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;As per my first post, I think the "non-interactive" is only a z/OS thing.&amp;nbsp; I wouldn't use that term.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So I would call all three of the scenarios you described "batch".&amp;nbsp; I wouldn't use the "non-interactive" term.&lt;/P&gt;</description>
      <pubDate>Mon, 20 Mar 2023 16:44:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/What-exactly-is-the-difference-between-SAS-Noninteractive-Mode/m-p/865262#M341689</guid>
      <dc:creator>Quentin</dc:creator>
      <dc:date>2023-03-20T16:44:20Z</dc:date>
    </item>
    <item>
      <title>Re: What exactly is the difference between SAS Noninteractive Mode and SAS Batch Mode?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/What-exactly-is-the-difference-between-SAS-Noninteractive-Mode/m-p/865264#M341690</link>
      <description>&lt;P&gt;Tom, all you wrote makes sense to me (If I understand it correctly).&lt;/P&gt;&lt;P&gt;"I think the problem is the attempt make some distinction between a "batch" mode and a "non-interactive" mode"&lt;/P&gt;&lt;P&gt;I totally agree, but SAS unfortunatley exactly doing that in its doc when it groups BASE SAS execution modes into&lt;/P&gt;&lt;P&gt;4 different types: Windows Environment mode, Interactive Line mode, Batch-mode and Non-Interactive mode. The more I think about it, this grouping is unfortunate and creates confusion. Alle the examples you gave about jobs that you would call batch jobs and job's you would not call batch jobs make me believe, when I submit&amp;nbsp;&amp;nbsp; 'sas xxx.sas' from the command line, I would call it just 'non-interactive mode' and when in addition it is scheduled, I would call it 'non-interactive mode running as a batch job'&lt;/P&gt;</description>
      <pubDate>Mon, 20 Mar 2023 16:45:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/What-exactly-is-the-difference-between-SAS-Noninteractive-Mode/m-p/865264#M341690</guid>
      <dc:creator>mike_bn</dc:creator>
      <dc:date>2023-03-20T16:45:00Z</dc:date>
    </item>
    <item>
      <title>Re: What exactly is the difference between SAS Noninteractive Mode and SAS Batch Mode?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/What-exactly-is-the-difference-between-SAS-Noninteractive-Mode/m-p/865265#M341691</link>
      <description>&lt;P&gt;Agree, an EG is pseudo-interactive in the same way.&amp;nbsp; But I'm happy to call EG and Studio interactive, as they allow you to maintain a SAS session an interact with it.&lt;/P&gt;</description>
      <pubDate>Mon, 20 Mar 2023 16:46:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/What-exactly-is-the-difference-between-SAS-Noninteractive-Mode/m-p/865265#M341691</guid>
      <dc:creator>Quentin</dc:creator>
      <dc:date>2023-03-20T16:46:45Z</dc:date>
    </item>
    <item>
      <title>Re: What exactly is the difference between SAS Noninteractive Mode and SAS Batch Mode?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/What-exactly-is-the-difference-between-SAS-Noninteractive-Mode/m-p/865268#M341692</link>
      <description>&lt;P&gt;Exactly.&amp;nbsp; So your last sentence is a good summary of the distinction between those two.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The distinction between the other to is the concept of windowing.&amp;nbsp; In the old original interactive mode (more like the mode of original BASIC programs) you can just type commands and see results.&amp;nbsp; You cannot jump around using mouse of arrow keys and interact with multiple windows.&amp;nbsp; It is like the difference between editing a file using a command editor like edlin and and more GUI tool like vi or EMACS.&lt;/P&gt;</description>
      <pubDate>Mon, 20 Mar 2023 16:50:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/What-exactly-is-the-difference-between-SAS-Noninteractive-Mode/m-p/865268#M341692</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2023-03-20T16:50:41Z</dc:date>
    </item>
    <item>
      <title>Re: What exactly is the difference between SAS Noninteractive Mode and SAS Batch Mode?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/What-exactly-is-the-difference-between-SAS-Noninteractive-Mode/m-p/865269#M341693</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/159"&gt;@Tom&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;I think the problem is the attempt make some distinction between a "batch" mode and a "non-interactive" mode.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;As is normal with computer terminology existing words are adopted and attached to very specific concepts that have only a passing relationship with the ordinary meaning of those words.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;BATCH is a pretty well defined concept in computers (at least to us old timers) and is not the same as just running a program.&amp;nbsp; Just running a program at the terminal is not batch.&amp;nbsp; I don't call it "batch" if I run a compiler.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;When I ran SAS from the REXX text editor on a VM/CMS machine I was not running a "batch" job.&amp;nbsp; The editor script would save the program file and use SAS to run the program.&amp;nbsp; That was a "non-interactive" run if you will.&amp;nbsp; So are those that use similar scripts in EMACS to do the same thing on UNIX systems.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you have a JOB card you are submitting a batch job.&amp;nbsp; Tools like LSF are using batch queues to run jobs.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;When I ran SAS from the WYLBER editor on a MVS system in the 1980's the files I submitted to run had JOB cards are were sent to be batch run.&amp;nbsp; That was running in batch.&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Well, I would call everything you described batch. : )&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;But again, I learned the term "batch submit" within the SAS context.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This makes me curious when SAS introduced the term "batch submit".&amp;nbsp; I suppose the original SAS didn't have an interactive line mode.&amp;nbsp; Maybe the introduction of interactive line mode is what led them to introduce the 'batch' term?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I started in 6.12, so don't know that history.&amp;nbsp; I do have a SAS '78 manual at home, I'll have to check...&lt;/P&gt;</description>
      <pubDate>Mon, 20 Mar 2023 16:51:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/What-exactly-is-the-difference-between-SAS-Noninteractive-Mode/m-p/865269#M341693</guid>
      <dc:creator>Quentin</dc:creator>
      <dc:date>2023-03-20T16:51:54Z</dc:date>
    </item>
    <item>
      <title>Re: What exactly is the difference between SAS Noninteractive Mode and SAS Batch Mode?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/What-exactly-is-the-difference-between-SAS-Noninteractive-Mode/m-p/865822#M341922</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/19879"&gt;@Quentin&lt;/a&gt;&amp;nbsp;- Batch processing on an MVS-style mainframe has a special meaning. When you submit a batch job on MVS it goes off to a special application that queues and processes (and manages resources) of batch jobs in sequence, almost like a mini VM. This is NOT the same as just executing a non-interactive SAS job by calling the SAS executable directly. FYI, IBM's LSF scheduler provides similar functionality on Unix and Windows. When you run SAS jobs via LSF, it is LSF that controls the queuing and execution of the SAS jobs. For example you can limit the number of SAS jobs that are allowed to run simultaneously.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;To summarise, batch processing occurs when you run SAS via a third-party batch controller or scheduler app. Non-interactive processing is when call the SAS executable directly with a SAS program(s) as input.&amp;nbsp; &amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 23 Mar 2023 00:24:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/What-exactly-is-the-difference-between-SAS-Noninteractive-Mode/m-p/865822#M341922</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2023-03-23T00:24:06Z</dc:date>
    </item>
    <item>
      <title>Re: What exactly is the difference between SAS Noninteractive Mode and SAS Batch Mode?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/What-exactly-is-the-difference-between-SAS-Noninteractive-Mode/m-p/865827#M341925</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13976"&gt;@SASKiwi&lt;/a&gt;&amp;nbsp;I don't have MVS mainframe experience, but I'm willing to accept that "batch processing" has a meaning in that context.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;That said, I think "batch" also has a meaning in the context of SAS. &amp;nbsp;On Windows, if I right-click a .sas program it brings up a SAS context menu that says "batch submit." &amp;nbsp;If I invoke SAS from a command prompt on Window or Linux (i.e. issue the command: sas foo.sas), I think most of the SAS community would also call that a "batch submit". &amp;nbsp;I've used LSF to schedule jobs on Linux, but I see that as controlling when/whether to execute a batch job. &amp;nbsp;Or even simpler, consider cron. Whether I enter the command sas foo.sas at a command prompt, or use cron to schedule that command, I see them both as batch submissions. &amp;nbsp; Again, in the context of SAS. &amp;nbsp;As discussed in the docs, e.g.&amp;nbsp;&lt;A href="https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/hostunx/n0x9esc5c95qg4n1wogx5u2k7354.htm" target="_blank"&gt;https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/hostunx/n0x9esc5c95qg4n1wogx5u2k7354.htm&lt;/A&gt;&amp;nbsp;and&amp;nbsp;&lt;A href="https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/hostwin/p16esisc4nrd5sn1ps5l6u8f79k6.htm#p01fzykn6n0s73n164xasi1t3ii9" target="_blank"&gt;https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/hostwin/p16esisc4nrd5sn1ps5l6u8f79k6.htm#p01fzykn6n0s73n164xasi1t3ii9&lt;/A&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 23 Mar 2023 01:13:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/What-exactly-is-the-difference-between-SAS-Noninteractive-Mode/m-p/865827#M341925</guid>
      <dc:creator>Quentin</dc:creator>
      <dc:date>2023-03-23T01:13:44Z</dc:date>
    </item>
  </channel>
</rss>

