The DQ.CASE function
applies casing rules to an input string and outputs the result to
a field.
The function is a member
of the data quality class. A data quality object can be declared as
a variable and must then be initialized using a call to the function
DQ_INITIALIZE.
You can specify one
of three casing types: uppercase, lowercase, or propercase. When uppercase
or lowercase is specified, the function applies Unicode uppercase
or lowercase mappings to the characters in the input string. When
propercasing is specified, the function applies uppercase mappings
to the first letter in each word and lowercase mappings to the remaining
letters.
The caller can invoke
the use of a case definition. A case definition is an object in the
QKB that contains context-specific casing logic. For example, a case
definition implemented for the purpose of propercasing name data can
be used to convert the string "Mcdonald" to "McDonald".
Refer to the QKB documentation for information about what case definitions
are available in your QKB. If you do not want to use a case definition,
you can omit the case definition name by entering a blank string for
the case definition parameter. In this case, generic Unicode case
mappings are applied to the input string as described earlier.
Note: If you want to use a case
definition, you must call DQ.LOADQKB before calling DQ.CASE. The function
DQ.LOADQKB loads the contents of a QKB into memory and links that
QKB with the data quality object. This enables DQ.CASE to access the
case definition that you specify.