Hi Patrick,
Do you have the following in your procedure, if so remove it (and place AS in the previous line):
READS SQL DATA AS
If you are on Rev.68 there is also a system configuration setting you will probably need to amend - Configuration>repository>sqlscript_mode>UNSECURE (if it's not there then create it).