Consultor Eletrônico



Kbase P40518: Receiving errors (247) and (198) when running a procedure wi
Autor   Progress Software Corporation - Progress
Acesso   Público
Publicação   04/09/2003
Status: Unverified

SYMPTOM(s):

Receiving errors (247) and (198) when running a procedure with an input parameter.

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

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

If source code exists and the RUN statement specifies a source procedure (xxx.p) then the command runs successfully.

If compiled code (rcode) exists and the RUN statement specifies rcode (xxx.r) then error (247) shows mixed weird characters.

CAUSE:

You are accidentally passing an argument to the next procedure instead of passing an input parameter.

Because you are passing an argument, the RUN statement is expecting a source procedure.

FIX:

Instead of running code like this:

DEFINE VARIABLE myparam AS CHAR INIT "Test" NO-UNDO.
RUN proc.r myparam.

You should be running:
DEFINE VARIABLE myparam AS CHAR INIT "Test" NO-UNDO.
RUN proc.r (myparam).