Hi,
When we last left thread328-281471 , we had decided you had the wrong TUF release. I am glad to see we are beyond that.
Ok...you take your stored procedure....
Replace Procedure GetCount(Parent Integer)
Begin
Declare x Integer;
Select count() into :x from mytable;
print x;
End
and put it in a file mysp.spl then you execute.....
.compile file = mysp.spl
If you are getting this error from the .compile I wonder if you have a DROP TABLE statement in your SPL and the PARSER is detecting you are trying to drop a Global Temp Table instead of a REAL table.
In this case you must specify
Drop Global temporary table blort;
so it knows Blort is a temp table.