Add a colon in front of the variable name - exec sql prepare SQL_Stmt from
:MySQLText;




On Tue, Sep 2, 2014 at 7:26 AM, Bill Howie <blhowie66@xxxxxxxxx> wrote:

Sorry folks, I apparently fat-fingered the send button before I finished my
email. Anyway it's pretty basic code so I'm not sure why I'm getting the
error. Is there some part of doing a PREPARE and EXECUTE that I'm
missing? I looked through a lot of examples and it looked pretty
straightforward. Any help would be MUCH appreciated. Thanks!

Bill
--
This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing list
To post a message email: MIDRANGE-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/midrange-l
or email: MIDRANGE-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/midrange-l.






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