2, SYNTAX ERROR

Commodore Amiga

Severity: Minor

What it means

Amiga BASIC error 2.
Commodore's manual: a line contains some incorrect sequence of characters, such as an unmatched parenthesis, a misspelled command or statement, or incorrect punctuation.

Affected Models

  • Amiga computers with Amiga BASIC, written by Microsoft for Commodore

How to Fix It

  1. Look at the line for a misspelled word.

  2. Count the parentheses and the quotation marks.

  3. Did you use a reserved word as the name of a variable?
    That gives a syntax error too.
    Choose another name.

Frequently Asked Questions

Why do I get it before the program starts?

Amiga BASIC checks the structure of a program before it runs it, and reports a syntax error then, too.