Definitely an RPG question. Without a doubt.
But, the answer is change
exec sql prepare SQL_Stmt from MySQLText;
to
exec sql prepare SQL_Stmt from :MySQLText;
The former is looking for a variable outside of your RPG program.
The latter is looking for one of your RPG variables.


Rob Berendt




Return to Archive home page | Return to MIDRANGE.COM home page