ST_DROP_COORDSYS procedure

Use this stored procedure to delete information about a coordinate system from the database. When this stored procedure is processed, information about the coordinate system is no longer available from the DB2GSE.ST_COORDINATE_SYSTEMS catalog view.

Restriction:
You cannot drop a coordinate system on which a spatial reference system is based.

Authorization

The user ID under which the stored procedure is invoked must have DBADM authority.

Syntax

Read syntax diagramSkip visual syntax diagramDB2GSE.ST_DROP_COORDSYS(coordsys_name, msg_code , msg_text )

Parameter descriptions

coordsys_name
Uniquely identifies the coordinate system. You must specify a non-null value for this parameter.

The coordsys_name value is converted to uppercase unless you enclose it in double quotation marks.

The data type for this parameter is VARCHAR(128) or, if you enclose the value in double quotation marks, VARCHAR(130).

Output parameters

msg_code
Specifies the message code that is returned from the stored procedure. The value of this output parameter identifies the error, success, or warning condition that was encountered during the processing of the procedure. If this parameter value is for a success or warning condition, the procedure finished its task. If the parameter value is for an error condition, no changes to the database were performed.

The data type of this output parameter is INTEGER.

msg_text
Specifies the actual message text, associated with the message code, that is returned from the stored procedure. The message text can include additional information about the success, warning, or error condition, such as where an error was encountered.

The data type of this output parameter is VARCHAR(1024).

Example

This example shows how to invoke the ST_DROP_COORDSYS stored procedure. This example uses a CALL command to delete a coordinate system named NORTH_AMERICAN_TEST from the database:

call DB2GSE.ST_DROP_COORDSYS('NORTH_AMERICAN_TEST',?,?)

The two question marks at the end of this CALL command represent the output parameters, msg_code and msg_text. The values for these output parameters are displayed after the stored procedure runs.