EXECSQL statement


The EXECSQL statement directs 

BMC AMI Log Master

 to execute a set of SQL statements against a Db2 database. 

BMC AMI Log Master

 uses the High-speed Apply Engine to execute SQL statements.

The following figure shows the EXECSQL statement syntax.

GUID-2FB7A89D-EAEF-43C9-88B0-B0F9AFC77F6D-low.png

Option

Description

SQLDataSetName

Specifies the name of a data set containing valid ANSI SQL statements.

BINDOWNER (authid)

Specifies an authorization ID that has authority within Db2 security to bind programs and generate plans. BMC AMI Log Master uses this authorization ID to bind an application plan whenever BMC AMI Log Master executes generated SQL statements.

The default value of this keyword depends on the value of the BINDOWN= installation option. If your environment does not specify a value for BINDOWN, BMC AMI Log Master uses the user ID of the user who submitted the job.

DECIMAL POINT

Defines the character that was used to delineate fractional values in the SQL generated by the product. The default value for this keyword is the character specified in the DSNHDECP module of the target Db2 subsystem.

Value

Description

PERIOD

Defines the decimal point character as a period (.).

COMMA

Defines the decimal point character as a comma (,).

PLAN NAME (planName)

Specifies the name of an existing plan that BMC AMI Log Master uses to access data during the execution of the generated SQL. BMC AMI Log Master creates or updates this plan during processing and uses it to access the required data. The default value for planName is the character constant ALP, followed by the job number (for example, 'ALP00302').

See also PLANESQL=ALP.

FREE | NOFREE

The FREE and NOFREE keywords determine the persistence of information about the plan defined by planName.

Value

Description

FREE

(Default) Indicates that BMC AMI Log Master deletes plan information from the Db2 catalog after processing.

NOFREE

Indicates that BMC AMI Log Master retains plan information in the catalog for a subsequent run of the job.

SQLPRINT

Determines the content of the SQLPRINT data set. BMC AMI Log Master writes the results of SQL execution (including SQL codes and statement identifiers) into the SQLPRINT data set as it executes generated SQL statements.

Value

Description

WARN

(Default) This causes the SQLPRINT data set to include only the results of SQL statements that receive nonzero SQL codes or SQL warnings.

ALL

This causes the SQLPRINT data set to include the results of all executed SQL statements.

For more information, see SQLPRINT in Specifying-the-DD-statements.



 

Tip: For faster searching, add an asterisk to the end of your partial query. Example: cert*