Working with string arguments in DB2 UDB CLI functions
These conventions can help you handle various aspects of string arguments in DB2® UDB call level interface (CLI) functions.
- Length of string arguments in DB2 UDB CLI functions
Input string arguments have an associated length argument.
- String truncation in DB2 UDB CLI functions
If an output string does not fit into a buffer, DB2 UDB call level interface (CLI) truncates the string to a length that is one less than the size of the buffer, and writes the null terminator.
- Interpretation of strings in DB2 UDB CLI functions
DB2 UDB call level interface (CLI) ignores case and removes leading and trailing blanks for all string input arguments, such as column names and cursor names.
Parent topic:
Writing a DB2 UDB CLI application