DB2 10.5 for Linux, UNIX, and Windows

SET CURRENT SQL_CCFLAGS statement

The SET CURRENT SQL_CCFLAGS statement changes the value of the CURRENT SQL_CCFLAGS special register.

Invocation

This statement can be embedded in an application program or issued interactively. It is an executable statement that can be dynamically prepared.

Authorization

None required.

Syntax

Read syntax diagramSkip visual syntax diagram
                             .-=-.                        
>>-SET--CURRENT SQL_CCFLAGS--+---+--+-variable--------+--------><
                                    '-string-constant-'   

Description

variable
Specifies a variable that contains one or more name and value pairs that are separated by commas.
The variable must have the following characteristics (SQLSTATE 42815):
  • The data type must be CHAR or VARCHAR. The actual length of the contents of the variable must not exceed the maximum length of the special register.
  • It must be a string of blanks, an empty string, or include one or more name and value pairs where the name is separated from the value by the colon character. The name must be a valid ordinary identifier. The value associated with a name must be a BOOLEAN constant, an INTEGER constant, or the keyword NULL.
  • It must be padded on the right with blanks if using a fixed-length character variable.
  • It can include extra blanks at the beginning or ending of the string, around the comma character, or around the colon character. The blanks are ignored.
  • It must not be the null value.
string-constant
Specifies a character string constant that contains one or more name and value pairs that are separated by commas.
The string constant must have the following characteristics (SQLSTATE 42815):
  • It must be a character string constant. The length of the constant must not exceed the maximum length of the special register.
  • It must be a string of blanks, an empty string or include one or more name and value pairs where the name is separated from the value by the colon character. The name must be a valid ordinary identifier. The value associated with a name must be a BOOLEAN constant, an INTEGER constant, or the keyword NULL.
  • It can include extra blanks at the beginning or ending of the string, around the comma character, or around the colon character. The blanks are ignored.

Notes

Examples