Types of commands

Table 5-1 summarizes the Client-Library command types.

Table 5-1: Summary of command types

Command type

Initiated by

Summary

Language

ct_command

Defines the text of a query that the server will parse, interpret, and execute.

RPC, Package

ct_command

Specifies the name of a server procedure (Adaptive Server Enterprise stored procedure or Open Server registered procedure) to be executed by the server. The procedure must already exist on the server.

Package commands are available only to client applications that connect to Open Server for CICS server applications. They are otherwise identical to RPC commands.

Cursor

ct_cursor

Initiates one of several commands to manage a Client-Library cursor.

Dynamic SQL

ct_dynamic

Initiates a command to execute a literal SQL statement (with restrictions on statement content) or to manage a prepared dynamic SQL statement.

Message

ct_command

Initiates a message command and specifies the message-command ID number.

Send-Data

ct_command

Initiates a command to upload a large text/image column value to the server.