Error: No {used} ‘{name}’: no method or class query of the schema’s package is SqlProc under that name
CALL schema.name(...), schema.name(...) in an expression or FROM schema.name(...)
names a stored procedure no class provides: no method or class query of the schema’s
package, inherited ones included, is [ SqlProc ] under that name – Class_Member by
default, a leading % spelled sys_, or the member’s own SqlName. IRIS refuses to
compile the CALL; the other two compile and get SQLCODE -359 or -30 when the statement
runs. A function without a schema is left alone: it may be a built-in.
IRIS rejects the example. Checked without an environment, as --iris none.
Class Demo.SqlProcedureNotFound
{
ClassMethod Promote(name As %String) As %Integer [ SqlProc ] //! A8061
{
Quit $Length(name)
}
ClassMethod Run() As %Integer //! A8061
{
&sql(CALL Demo.SqlProcedureNotFound_Promot('Ann')) //! A2957
Quit SQLCODE
}
}