Working within the Run SQL Scripts window, I can run this command:
SELECT G.ITEM, G.ITEMDESC, G.UOM, G.STRATCD, G.STRATDESC
FROM RFQITMV1 G
WHERE G.ITEM = 'AFW14481';
However when I highlight this command and issue the Visual Explain option, I get this error:
SQL State: 42601
Vendor Code: -104
Message: [SQL0104] Token ; was not valid. Valid tokens: <END-OF-STATEMENT>. Cause . . . . . : A syntax error was detected at token ;. Token ; is not a valid token. A partial list of valid tokens is <END-OF-STATEMENT>. This list assumes that the statement is correct up to the token. The error may be earlier in the statement, but the syntax of the statement appears to be valid up to this point. Recovery . . . : Do one or more of the following and try the request again: -- Verify the SQL statement in the area of the token ;. Correct the statement. The error could be a missing comma or quotation mark, it could be a misspelled word, or it could be related to the order of clauses. -- If the error token is <END-OF-STATEMENT>, correct the SQL statement because it does not end with a valid clause.
This happens no matter which Visual Explain option I choose. This is the only command within the Run Scripts window.
I have been able to run VE before.
Any ideas on why this is happening and what I can do to fix it?