>his runs fine when I am trying to create a .hdbprocedure
but fails when I want to create a .procedure
.
Why would you want to use a .procedure? The .procedure format is obsolete and replaced with .hdbprocedure. You even receive a "Deprecated" message in the Studio when you try to create new .procedures.