XSR_COMPLETE stored procedure

The XSR_COMPLETE procedure is the final stored procedure to be called as part of the XML schema registration process, which registers XML schemas with the XSR.

An XML schema is not available for validation until the schema registration completes through a call to this stored procedure.

Environment for XSR_COMPLETE

XSR_COMPLETE requires a WLM-established stored procedures address space that is configured for running Java routines.

Recommendation: Start of changeUse WLM environment DSNWLM_JAVA for running XSR_COMPLETE. The startup procedure for this environment, DSNWLMJ, can be configured during installation, using installation panel DSNTIPRH, XML schema processing routines.End of change

Authorization required for XSR_COMPLETE

The user ID of the caller of the procedure must have the EXECUTE privilege on the XSR_COMPLETE stored procedure.

XSR_COMPLETE syntax diagram

The following syntax diagram shows the CALL statement for invoking XSR_COMPLETE.

Read syntax diagram
         .-SYSPROC-.                                            
>>-CALL--+---------+--.--XSR_COMPLETE--(--rschema--,--name--,--->

>--schemaproperties--,--issuedfordecomposition--)--------------><

XSR_COMPLETE option descriptions

rschema
An input argument of type VARCHAR(128) that specifies the SQL schema for the XML schema. If a value is specified, it must be SYSXSR. Rules for valid characters and delimiters that apply to any SQL identifier also apply to this argument.
name
An input argument of type VARCHAR(128) that specifies the name of the XML schema. The complete SQL identifier for the XML schema, for which a completion check is to be performed, is rschema.name. The XML schema name must already exist as a result of calling the XSR_REGISTER stored procedure. This argument cannot have a NULL value. Rules for valid characters and delimiters that apply to any SQL identifier also apply to this argument.
schemaproperties
An input argument of type BLOB(5M) that specifies properties, if any, associated with the XML schema. The value for this argument is either NULL, if there are no associated properties, or an XML document representing the properties for the XML schema.
isusedfordecomposition
This value must be zero. XML schema decomposition is not supported.

Example of XSR_COMPLETE

The following example calls the XSR_COMPLETE stored procedure:
   CALL SYSPROC.XSR_COMPLETE(
     'SYSXSR',
     'POschema',
     :schemaproperty_host_var,
     0)

In this example, XSR_COMPLETE folds the name POschema to uppercase, so the name of the XML schema for which registration is completed is POSCHEMA. If you do not want XSR_COMPLETE to fold POschema to uppercase, you need to delimit the name with double quotation marks ("), as in the following example.

   CALL SYSPROC.XSR_COMPLETE(
     'SYSXSR',
     '"POschema"',
     :schemaproperty_host_var,
     0)