<?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=EXIT</id>
	<title>EXIT - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.vmssoftware.com/index.php?action=history&amp;feed=atom&amp;title=EXIT"/>
	<link rel="alternate" type="text/html" href="https://wiki.vmssoftware.com/index.php?title=EXIT&amp;action=history"/>
	<updated>2026-04-30T06:27:37Z</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=EXIT&amp;diff=1616&amp;oldid=prev</id>
		<title>Jane.doe at 10:32, 2 December 2019</title>
		<link rel="alternate" type="text/html" href="https://wiki.vmssoftware.com/index.php?title=EXIT&amp;diff=1616&amp;oldid=prev"/>
		<updated>2019-12-02T10:32:27Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 10:32, 2 December 2019&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l1&quot;&gt;Line 1:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 1:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&#039;&#039;&#039;EXIT&#039;&#039;&#039; is a DCL command that terminates processing of a command procedure or subroutine and returns control to the calling command level-either an invoking [[Command Procedure|command procedure]] or interactive [[DCL]]. The EXIT command also terminates an image normally after a user enters Ctrl/Y (executing another image has the same effect).&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&#039;&#039;&#039;EXIT&#039;&#039;&#039; is a DCL command that terminates processing of a command procedure or subroutine and returns control to the calling command level-either an invoking [[Command Procedure|command procedure]] or interactive [[DCL]]. The EXIT command also terminates an image normally after a user enters Ctrl/Y (executing another image has the same effect)&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;. EXIT is executed inside of [[DCL]], i.e. it does not invoke an image&lt;/ins&gt;.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;=Syntax=&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;=Syntax=&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Jane.doe</name></author>
	</entry>
	<entry>
		<id>https://wiki.vmssoftware.com/index.php?title=EXIT&amp;diff=1599&amp;oldid=prev</id>
		<title>Jane.doe: Created page with &quot;&#039;&#039;&#039;EXIT&#039;&#039;&#039; is a DCL command that terminates processing of a command procedure or subroutine and returns control to the calling command level-either an invoking Command Proce...&quot;</title>
		<link rel="alternate" type="text/html" href="https://wiki.vmssoftware.com/index.php?title=EXIT&amp;diff=1599&amp;oldid=prev"/>
		<updated>2019-12-02T08:04:23Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;&amp;#039;&amp;#039;&amp;#039;EXIT&amp;#039;&amp;#039;&amp;#039; is a DCL command that terminates processing of a command procedure or subroutine and returns control to the calling command level-either an invoking Command Proce...&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;EXIT&amp;#039;&amp;#039;&amp;#039; is a DCL command that terminates processing of a command procedure or subroutine and returns control to the calling command level-either an invoking [[Command Procedure|command procedure]] or interactive [[DCL]]. The EXIT command also terminates an image normally after a user enters Ctrl/Y (executing another image has the same effect).&lt;br /&gt;
&lt;br /&gt;
=Syntax=&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&lt;br /&gt;
EXIT [status-code]&lt;br /&gt;
 &amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Status Code==&lt;br /&gt;
Defines a numeric value for the reserved global symbol [[$STATUS]]. You can specify the status-code parameter as an integer or an expression equivalent to an integer value. The value can be tested by the next outer command level. The low-order 3 bits of the value determine the value of the global symbol [[$SEVERITY]].&lt;br /&gt;
&lt;br /&gt;
If you specify a status code, DCL interprets the code as a condition code. Note that even numeric values produce warning, error, and fatal error messages, and that odd numeric values produce either no message or a success or informational message.&lt;br /&gt;
&lt;br /&gt;
If you do not specify a status code, the current value of [[$STATUS]] is saved. When control returns to the outer command level, [[$STATUS]] contains the status of the most recently executed command or program.&lt;br /&gt;
&lt;br /&gt;
=Examples=&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&lt;br /&gt;
$ EXIT 1&lt;br /&gt;
 &amp;lt;/nowiki&amp;gt;&lt;br /&gt;
The EXIT command in this example exits to the next higher command level, giving [[$STATUS]] and [[$SEVERITY]] a value of 1.&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&lt;br /&gt;
$ CREATE E.COM&lt;br /&gt;
$ IF P1 .EQS. &amp;quot;&amp;quot; THEN INQUIRE P1 &amp;quot;Code&amp;quot;&lt;br /&gt;
$ CODE = %X&amp;#039;P1&amp;#039;&lt;br /&gt;
$ EXIT CODE&lt;br /&gt;
$&lt;br /&gt;
$ @E 1C&lt;br /&gt;
  %SYSTEM-F-EXQUOTA, exceeded quota&lt;br /&gt;
 &amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
When the procedure exits, the value of $STATUS is %X1C, which equates to the EXQUOTA message. Note that you can also use the [[F$MESSAGE()]] lexical function to determine the message that corresponds to a status code.&lt;br /&gt;
&lt;br /&gt;
[[Category:DCL Commands]]&lt;/div&gt;</summary>
		<author><name>Jane.doe</name></author>
	</entry>
</feed>