The GOTO command transfers execution control to the statement at the specified label or line number. GOTO commands can be used to escape or enter loops, although this is poor style and may cause problems in future versions of EASI.
GOTO label label - an existing line number between 1 and 9999, or a statement label
Execution control is transferred to the statement at the label / line number indicated. Note that statement labels are indicated by an identifier at the beginning of a line followed by a colon and a statement. If it is undesirable to place a statement on the same line for formatting purposes, it may be placed on the next line and a backslash used to mark the split of the virtual line (as shown in the example).
Label formats are limited only to the following criteria:
Examples:
GOTO 1500
run cim onerror goto Error ... Error: \ print "An error has occurred in creating the new database."
Using GOTO is also the preferrable style to quit nested cycles in case of special conditions.
© PCI Geomatics Enterprises, Inc.®, 2026. All rights reserved.