Using intermediate backout points: the SETS and ROLS commands
Use the SETS and ROLS commands to define multiple
points at which to preserve the state of DL/I full-function databases and to return to these points
later. For example, you can use them to allow your program to handle situations that can occur when
PSB scheduling complete without all of the referenced DL/I databases being available.
The SETS and ROLS commands apply only to DL/I
full-function databases. Therefore, if a logical unit of work (LUW) is updating recoverable
resources other than full-function databases (VSAM files, for example), the SETS
and ROLS requests have no effect on the non-DL/I resources. The backout points are
not
CICS® commit points; they are intermediate backout points that
apply only to DBCTL resources. Your program must ensure the consistency of all the resources
involved.
Before initiating a set of DL/I requests to perform a function, you can use a
SETS command to define points in your application at which to preserve the state of
DL/I databases. Your application can issue a ROLS command later if it cannot
complete the function. You can use the ROLS command to back out to the state all
full-function databases were in before either a specific SETS request or the most
recent commit point.