The new feature called High Availability (HA) failover allows you to designate and connect to a second server when a connection to the primary server fails. The implementation is straightforward for the COBOL precompiler.
The command line argument parser reads the -H flag, stores the failover server name, and generates the necessary CT-Lib statements to implement HA failover., as in the following example:
$SYBASE/bin/cobpre -H filename.cp
To use this option, the secondary server must be up
and running and correctly listed in the interfaces file as the HA
failover server.
For more information, see the Open Client/Server Programmer’s Supplement for UNIX platforms.