SQL Guide : solidDB® SQL statements : CREATE PROCEDURE : Procedure stack functions
  
Procedure stack functions
The following functions may be used to analyze the current contents of the procedure stack: PROC_COUNT(), PROC_NAME(N), PROC_SCHEMA(N).
PROC_COUNT() returns the number of procedures in the procedure stack. This includes the current procedure.
PROC_NAME(N) returns the Nth procedure name is the stack. First procedure position is zero.
PROC_SCHEMA(N) returns the schema name of the Nth procedure in procedure stack.
See also
CREATE PROCEDURE