Creating a function-string class

If function strings in an existing class do not serve your needs for particular database connections, and customizing function strings in an existing class is not feasible, you can create a new class in which to create the function strings you need. You can either:

To create a derived or base function-string class and begin using it for a database connection using RCL commands, follow these steps:

  1. Create the function-string class with the create function string class command, using the syntax appropriate for your task. See:

    The name of the new class must conform to the rules for identifiers provided in “Identifiers” in Chapter 2, “Topics,” in the Replication Server Reference Manual.

  2. Create function strings for the new class with the create function string command, described in “Creating function strings”.

  3. If you are preparing a new function-string class for an existing database connection, you must suspend the connection before you can use the new class. See “Suspending database connections” on page 175 in the Replication Server Administration Guide Volume 1 for details.

  4. Create or alter the database connection to use the new class. See “Assigning a function-string class to a database”.

  5. If you altered an existing database connection to use the new class, resume the connection. See “Suspending database connections” on page 175 in the Replication Server Administration Guide Volume 1 for details.