Thanks, Sam. Just coding the name of the procedure with its input variables solved the problem - EXECUTE IMMEDIATE was not even necessary.