Common Errors
Every so often, you will make a mistake, and Caché will display an error message. You can find detailed information about all error messages in the Caché documentation. Below you'll see examples of four common errors you'll encounter:
-
<SYNTAX> for extra spaces and misspelled commands.
-
<NOROUTINE> for trying to run routines that don't exist.
-
<NOLINE> for trying to call procedures that don't exist.
-
<UNDEFINED> for trying to use variables that don't have assigned values. The message shows the undefined variable's name preceded by an asterisk.
SAMPLES>write "hi"
WRITE "hi"
^
<SYNTAX>
SAMPLES>s et x = 5
S et x = 5
^
<SYNTAX>
SAMPLES>sit x=5
SIT x=5
^
<SYNTAX>
SAMPLES>do ^%DD
DO ^%DD
^
<NOROUTINE> *%DD
SAMPLES>do INT^%DD
DO INT^%DD
^
<NOROUTINE> *%DD
SAMPLES>do ALLL^%FREECNT
DO ALLL^%FREECNT
^
<NOLINE>
SAMPLES>write xx
WRITE xx
^
<UNDEFINED> *xx
SAMPLES>