Running a procedure with parameters got a warning message

Document ID : KB000092315
Last Modified Date : 19/04/2018
Show Technical Document Details
Introduction:
Running a procedure with parameters got a waring message.
 
&MPCODE has a value of 'AAAA'.
 
RUN FORM USERID.PROCNAME (&&&&MYCODE=&MPCODE);

PRF0214W Query contains invalid WHERE clauses - will not execute

 
Instructions:
The PROC has to be defined in the following way.

RUN FORM USERID.PROCNAME (&&&&MYCODE="&MPCODE");