Consultor Eletrônico



Kbase 20495: Error(s) 247, 189 Generated Due to Placement of Comments
Autor   Progress Software Corporation - Progress
Acesso   Público
Publicação   16/10/2008
Status: Unverified

SYMPTOM(s):

Error 198: ** <program> Could not understand line <number>. (198)

Error 247: ** Unable to understand after -- "<string>". (247)

FIX:

One possible cause could be the placement of your comments. You should always leave at least one space between your code and your comments.

For example, the code:

   FOR EACH Customer:
    DISPLAY Name.
    END.

passes a syntax check. However, if you add a comment and fail to leave a space between your comments and code you receive a syntax error.

The following is an example of bad comment placement:

   FOR EACH Customer:
       DISPLAY Name.
    END./* bad comment placement*/

By adding a space between "END." and "/*bad..." your code passes the syntax check.

The following is an example of proper comments:

   FOR EACH Customer: /* Good comment placement*/
       DISPLAY Name. /* Good comment placement*/
    END. /* Good comment placement*/