<?xml version="1.0"?>
<?xml-stylesheet type="text/css" href="http://wiki.signature.net/skins/common/feed.css?270"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>http://wiki.signature.net/index.php?action=history&amp;feed=atom&amp;title=IB_Statements%2Ferrorto</id>
		<title>IB Statements/errorto - Revision history</title>
		<link rel="self" type="application/atom+xml" href="http://wiki.signature.net/index.php?action=history&amp;feed=atom&amp;title=IB_Statements%2Ferrorto"/>
		<link rel="alternate" type="text/html" href="http://wiki.signature.net/index.php?title=IB_Statements/errorto&amp;action=history"/>
		<updated>2026-04-07T07:27:04Z</updated>
		<subtitle>Revision history for this page on the wiki</subtitle>
		<generator>MediaWiki 1.16.0</generator>

	<entry>
		<id>http://wiki.signature.net/index.php?title=IB_Statements/errorto&amp;diff=391&amp;oldid=prev</id>
		<title>Badge: New page: '''ERRORTO statement'''   '''Syntax:'''  ERRORTO statement-label  (or)  ERRORTO [SYSTEM]    Discussion:  The ERRORTO statement sets a default exception branch. The statement-label is the l...</title>
		<link rel="alternate" type="text/html" href="http://wiki.signature.net/index.php?title=IB_Statements/errorto&amp;diff=391&amp;oldid=prev"/>
				<updated>2009-05-21T11:32:25Z</updated>
		
		<summary type="html">&lt;p&gt;New page: &amp;#39;&amp;#39;&amp;#39;ERRORTO statement&amp;#39;&amp;#39;&amp;#39;   &amp;#39;&amp;#39;&amp;#39;Syntax:&amp;#39;&amp;#39;&amp;#39;  ERRORTO statement-label  (or)  ERRORTO [SYSTEM]    Discussion:  The ERRORTO statement sets a default exception branch. The statement-label is the l...&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;'''ERRORTO statement''' &lt;br /&gt;
&lt;br /&gt;
'''Syntax:'''  ERRORTO statement-label&lt;br /&gt;
&lt;br /&gt;
(or)&lt;br /&gt;
&lt;br /&gt;
ERRORTO [SYSTEM]&lt;br /&gt;
&lt;br /&gt;
 &lt;br /&gt;
Discussion:  The ERRORTO statement sets a default exception branch. The statement-label is the label of an exception routine that will be executed if a runtime exception occurs that is not handled by an exception path (i.e., by an EXCP= or EXCPSUB= exception trap). &lt;br /&gt;
&lt;br /&gt;
ERRORTO SYSTEM may be specified to clear the ERRORTO statement currently in effect. &lt;br /&gt;
&lt;br /&gt;
The statement-label is automatically cleared after execution, and unless it is reset by another ERRORTO statement, subsequent un-trapped runtime exceptions will initiate the QENDITOR program. &lt;br /&gt;
&lt;br /&gt;
The ERRORTO statement does not affect the GOSUB stack. &lt;br /&gt;
&lt;br /&gt;
Note: ERRORSUB and ERRORTO are mutually exclusive; only one can be active at a time. The latest one that is executed is the one in effect. &lt;br /&gt;
 &lt;br /&gt;
'''Example:'''&lt;br /&gt;
  ERRORTO 9999&lt;br /&gt;
  .&lt;br /&gt;
  OPEN (1) &amp;quot;FILE123&amp;quot;&lt;br /&gt;
  .&lt;br /&gt;
  9999 IF EXCP=11 THEN RUN &amp;quot;QMONITOR&amp;quot;&lt;br /&gt;
     ERROR&lt;br /&gt;
&lt;br /&gt;
In the above example, the default exception routine is set at statement 9999. Subsequent un-trapped runtime exceptions will cause the program to branch to statement 9999, where the Comet system variable EXCP is interrogated. If EXCP equals 11 (indicating &amp;quot;file not found&amp;quot;), the program will run QMONITOR. Otherwise it will initiate the ERROR termination procedure.&lt;/div&gt;</summary>
		<author><name>Badge</name></author>	</entry>

	</feed>