IBM Books

Command Reference

INVOKE STORED PROCEDURE

Invokes a procedure stored at the location of a database. Also known as the Database Application Remote Interface (DARI). The server procedure executes at the location of the database, and returns data to the client application.

The application programmer designs the program to run in two parts, one on the client and the other on the server. The server procedure at the database runs within the same transaction as the client application. If the client application and the server procedure are on the same node, the server procedure is executed locally.
Note:This command has been replaced by the SQL CALL statement (see the SQL Reference). SQL CALL cannot be used from within the CLP.

Authorization

CONNECT privilege on a database.

Required Connection

Database

Command Syntax

>>-INVOKE--program-name----+---------------------------+-------><
                           '-USING--server-input-data--'
 
Note:Do not use INVOKE to call server procedures that use input or output SQLDA structures, including server procedures that return data. For more information, see the Application Development Guide.

Command Parameters

program-name
Specifies the procedure to be run on the server. This parameter can be specified in one of the following ways:

Note:To support portability between various versions of DB2 products, the ! delimiter can be replaced by the backslash (\) delimiter.

USING server-input-data
Specifies any information that is passed to the server routine. A variable character string, free form, flexible parameter that can be used to transmit input data according to specific needs.


[ Top of Page | Previous Page | Next Page | Table of Contents | Index ]

[ DB2 List of Books | Search the DB2 Books ]