Creating a UDSF written in C++ This section describes how to create, on a Db2 system, a user-defined scalar function (UDSF) written in C++.