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:
Create a derived class, one that inherits function strings from an existing parent class.
Create a base class, one that does not inherit function strings from another class.
To create a derived or base function-string class and begin using it for a database connection using RCL commands, follow these steps:
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.
Create function strings for the new class with the create function string command, described in “Creating function strings”.
If you are creating a derived class, you need create only the function strings that you want to override and inherit all others from the specified parent class.
The class rs_default_function_class does not contain default function strings for the rs_dumpdb and rs_dumptran functions. If you require them in a derived class that inherits from rs_default_function_class, you must create them. See “System-provided classes” for more information.
If you are creating a base class, you must create all the necessary function strings for the class.
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 191 in the Replication Server Administration Guide Volume 1 for details.
Create or alter the database connection to use the new class. See “Assigning a function-string class to a database”.
If you altered an existing database connection to use the new class, resume the connection. See “Suspending database connections” on page 191 in the Replication Server Administration Guide Volume 1 for details.