RDF System Management Manual

Table Of Contents
Process-Lockstep Operation
HP NonStop RDF System Management Manual524388-003
14-2
Starting a Lockstep Operation
The RDF/IMPX and RDF/ZLT independent product CDs include the following files
associated with the lockstep capability:
Starting a Lockstep Operation
Transactions protected by a lockstep operation are begun, performed, and terminated
just as any other transaction: call BeginTransaction, do the necessary database
updates, and then call EndTransaction.
What defines a lockstep operation is the invocation of the new DoLockstep procedure.
You issue the DoLockstep call immediately after the associated EndTransaction
call.
The DoLockstep Procedure
How you invoke the DoLockstep procedure differs depending on whether your
applications are written in COBOL or TAL.
Including the DoLockstep in COBOL85 Applications
To invoke the DoLockstep procedure from a COBOL85 program, you must first include
the DoLockstep object module in the SPECIAL-NAMES paragraph in the
CONFIGURATION section.
CONFIGURATION SECTION.
SOURCE-COMPUTER. HP NONSTOP.
OBJECT-COMPUTER. HP NONSTOP.
SPECIAL-NAMES.
FILE "<$vol>.<subvol>.LSLIBTO" IS LOCKSTEP-LIB.
where <$vol>.<subvol> is the location where you have placed the object file.
You then invoke the DoLockstep procedure in the PROCEDURE division by using the
following statement:
ENTER TAL "DOLOCKSTEP" IN LOCKSTEP-LIB GIVING RETURN-CODE
The lockstep software provided with the RDF/IMPX and RDF/ZLT products includes a
sample COBOL85 program (SLOCKCOB) that demonstrates how to use the
DoLockstep procedure in a COBOL program.
SLOCKCOB Sample code for invoking the DoLockstep procedure from a
COBOL 85 program.
LSGO RDF lockstep gateway object code.
LSLIBTO DoLockstep procedure object code.
FDOLOCK Forward declarations of the DoLockstep procedure call.