<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.vmssoftware.com/index.php?action=history&amp;feed=atom&amp;title=F%24MODE%28%29</id>
	<title>F$MODE() - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.vmssoftware.com/index.php?action=history&amp;feed=atom&amp;title=F%24MODE%28%29"/>
	<link rel="alternate" type="text/html" href="https://wiki.vmssoftware.com/index.php?title=F$MODE()&amp;action=history"/>
	<updated>2026-05-02T09:51:36Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.3</generator>
	<entry>
		<id>https://wiki.vmssoftware.com/index.php?title=F$MODE()&amp;diff=866&amp;oldid=prev</id>
		<title>Darya.zelenina: Created page with &quot;&#039;&#039;&#039;F$MODE()&#039;&#039;&#039; is a lexical function that returns a character string showing the mode in which a process is executing. The F$MODE function has no argumen...&quot;</title>
		<link rel="alternate" type="text/html" href="https://wiki.vmssoftware.com/index.php?title=F$MODE()&amp;diff=866&amp;oldid=prev"/>
		<updated>2019-06-28T19:19:25Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;&amp;#039;&amp;#039;&amp;#039;F$MODE()&amp;#039;&amp;#039;&amp;#039; is a &lt;a href=&quot;/Lexical_functions&quot; title=&quot;Lexical functions&quot;&gt;lexical function&lt;/a&gt; that returns a character string showing the mode in which a process is executing. The F$MODE function has no argumen...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;&amp;#039;&amp;#039;&amp;#039;F$MODE()&amp;#039;&amp;#039;&amp;#039; is a [[Lexical functions|lexical function]] that returns a character string showing the mode in which a process is executing. The F$MODE function has no arguments, but must be followed by parentheses.&lt;br /&gt;
&lt;br /&gt;
=Syntax=&lt;br /&gt;
&lt;br /&gt;
F$MODE()&lt;br /&gt;
&lt;br /&gt;
=Return Value=&lt;br /&gt;
&lt;br /&gt;
The character string INTERACTIVE for interactive processes. If the process is noninteractive, the character string BATCH, NETWORK, or OTHER is returned. Note that the return string always contains uppercase letters.&lt;br /&gt;
&lt;br /&gt;
=Examples=&lt;br /&gt;
&lt;br /&gt;
 $ IF F$MODE() .NES. &amp;quot;INTERACTIVE&amp;quot; THEN GOTO NON_INT_DEF&lt;br /&gt;
 $ INTDEF:         ! Commands for interactive terminal sessions&lt;br /&gt;
          .&lt;br /&gt;
          .&lt;br /&gt;
          .&lt;br /&gt;
 $ EXIT&lt;br /&gt;
 $ NON_INT_DEF:         !Commands for noninteractive processes&lt;br /&gt;
          .&lt;br /&gt;
          .&lt;br /&gt;
          .&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
This example shows the beginning of a login.com file that has two sets of initialization commands: one for interactive mode and one for noninteractive mode (including batch and network&lt;br /&gt;
jobs). The IF command compares the character string returned by F$MODE with the character string INTERACTIVE; if they are not equal, control branches to the label NON_INT_DEF. If the&lt;br /&gt;
character strings are equal, the statements following the label INTDEF are executed and the procedure exits before the statements at NON_INT_DEF.&lt;br /&gt;
&lt;br /&gt;
[[Category:Lexical Functions]]&lt;/div&gt;</summary>
		<author><name>Darya.zelenina</name></author>
	</entry>
</feed>