Product Information > JADE Error Messages and System Messages > 6000 through 6999 - JADE Compiler Errors > 6402 - Expecting:

6402   Expecting:

Cause

This error occurs if a specific input token is expected but was not found. In some cases, the highlighted token may be the source of the error or there may be an error earlier in the input, with no syntactic inconsistency being detected until the highlighted token. In other cases, the token that is reported as being expected by the compiler may not be what you intended.

Consider the following code fragments.

// ERROR! "do" omitted below
foreach cust in customerDict
    write cust.name;
endforeach;

In the above code fragment, the compiler reports Expecting: do on the token write that correctly identifies the error.

// ERROR! "where" misspelt below
foreach cust in customerDict wher cust.name > "S" do
    write cust.name;
endforeach;

In the above code fragment, the compiler reports Expecting: do on the misspelled token wher. Although the real error is that where has been misspelled, the compiler is unable to ascertain that this is the source of the error. However, it knows that do is the next compulsory symbol that must appear in the input, and so this is the error that is reported.

Action

Find the position of the error and change your application code accordingly.