<?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%2Fexcp</id>
		<title>IB Statements/excp - 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%2Fexcp"/>
		<link rel="alternate" type="text/html" href="http://wiki.signature.net/index.php?title=IB_Statements/excp&amp;action=history"/>
		<updated>2026-05-04T20:37:54Z</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/excp&amp;diff=399&amp;oldid=prev</id>
		<title>Badge: New page: '''Exception path'''   '''Parameter:'''  EXCP=statement-label    '''Discussion:'''  This parameter is used in input/output statements to specify the statement-label where program control i...</title>
		<link rel="alternate" type="text/html" href="http://wiki.signature.net/index.php?title=IB_Statements/excp&amp;diff=399&amp;oldid=prev"/>
				<updated>2009-05-21T11:50:31Z</updated>
		
		<summary type="html">&lt;p&gt;New page: &amp;#39;&amp;#39;&amp;#39;Exception path&amp;#39;&amp;#39;&amp;#39;   &amp;#39;&amp;#39;&amp;#39;Parameter:&amp;#39;&amp;#39;&amp;#39;  EXCP=statement-label    &amp;#39;&amp;#39;&amp;#39;Discussion:&amp;#39;&amp;#39;&amp;#39;  This parameter is used in input/output statements to specify the statement-label where program control i...&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;'''Exception path''' &lt;br /&gt;
&lt;br /&gt;
'''Parameter:'''  EXCP=statement-label &lt;br /&gt;
 &lt;br /&gt;
'''Discussion:'''  This parameter is used in input/output statements to specify the statement-label where program control is transferred if a runtime exception occurs. &lt;br /&gt;
&lt;br /&gt;
If a runtime exception occurs, the program will branch to the statement-label specified. At that statement label, the program may contain statements to inquire into the nature of the exception. &lt;br /&gt;
&lt;br /&gt;
For more information, see Exception Handling. &lt;br /&gt;
&lt;br /&gt;
Also see EXCPSUB=. &lt;br /&gt;
 &lt;br /&gt;
Example:  &lt;br /&gt;
        OPEN (1) &amp;quot;CUSTFILE&amp;quot;, EXCP=LABEL1        ! OPEN FILE&lt;br /&gt;
        .&lt;br /&gt;
        INPUT (0) CUSTNUM$                      ! ENTER CUST. NO.&lt;br /&gt;
        READ (1,1000) KEY=CUSTNUM$, EXCP=LABEL2 ! READ RECORD&lt;br /&gt;
        .&lt;br /&gt;
 LABEL1: IF EXCP = 11 THEN ...         ! FILE NOT FOUND EXCEPTION&lt;br /&gt;
          .&lt;br /&gt;
 LABEL2: IF EXCP = 32 THEN ...         ! KEY NOT FOUND EXCEPTION&lt;br /&gt;
        IF EXCP = 33 THEN ...         ! RECORD LOCKED EXCEPTION&lt;br /&gt;
&lt;br /&gt;
In this example, the OPEN statement attempts to open a file named &amp;quot;CUSTFILE&amp;quot;. If an exception occurs, the program branches to LABEL1:, where the system variable named EXCP is interrogated. &lt;br /&gt;
If the EXCP variable equals 11, Comet was not able to find the data file (most likely because such a file name did not exist). &lt;br /&gt;
&lt;br /&gt;
The READ statement attempts to read a record from the customer file with a key value equal to the input value (i.e., the customer number). If an exception occurs, the program branches to LABEL2:, where the system variable named EXCP is interrogated. &lt;br /&gt;
&lt;br /&gt;
If EXCP equals 32, the specified customer number key was not found in the file. &lt;br /&gt;
&lt;br /&gt;
If EXCP equals 33, the specified customer number key was locked (extracted) by another user. &lt;br /&gt;
&lt;br /&gt;
See system variables and EXCP for more information.&lt;/div&gt;</summary>
		<author><name>Badge</name></author>	</entry>

	</feed>