SQL/MX 2.x Reference Manual (H06.04+)

SQL/MX Statements
HP NonStop SQL/MX Reference Manual540440-003
2-60
CREATE PROCEDURE Statement
procedure-ref([sql-parameter[{, sql-parameter}...]])
specifies the name of the SPJ and SQL parameters that correspond to the
signature of the SPJ method.
procedure-ref
specifies an ANSI logical name of the form:
[[catalog-name.]schema-name.]procedure-name
where each part of the name is a valid SQL identifier with a maximum of 128
characters. For more information, see Identifiers on page 6-52.
The procedure-name must be unique among the names of tables, views,
SQL/MP aliases, and procedures within its schema. NonStop SQL/MX does
not support the overloading of procedure names. That is, you cannot register
the same procedure name more than once with different underlying SPJ
methods.
You cannot prefix the procedure name with the name of a user metadata
(UMD) table. For example, you cannot create a procedure named
HISTOGRAMS_MYPROC. These names are reserved for user metadata.
If you do not fully qualify the procedure name, NonStop SQL/MX qualifies it
according to the current settings of CATALOG and SCHEMA. If you set the
NAMETYPE attribute to NSK instead of ANSI and you do not fully qualify the
procedure name, NonStop SQL/MX returns an error. For more information on
the CATALOG, SCHEMA, and NAMETYPE attributes, see the System Defaults
Table on page 10-30.
sql-parameter
specifies an SQL parameter that corresponds to the signature of the SPJ
method:
[parameter-mode] [sql-identifier] sql-datatype
parameter-mode
specifies the mode IN, OUT, or INOUT of a parameter. The default is IN.
IN
specifies a parameter that passes data to an SPJ.
INOUT
specifies a parameter that passes data to and accepts data from an
SPJ.