The following scenario uses XRC commands to support a disaster recovery. The scenario objective is to initialize a set of volumes, copy changes on a continuous basis, and recover to a known point in time after the disaster.
XSTART TUCSON SESSIONTYPE(XRC) ERRORLEVEL(VOLUME) HLQ(NEW)
XADDPAIR TUCSON VOLUME(PRIM01,SECO01)
The error response level defaults to what is specified on the XSTART command. XRC assigns the volume pair to the default storage control session "--".
XADDPAIR TUCSON VOLUME(PRIM02,SECO02) ERRORLEVEL(SESSION)
Normal data processing continues.
XEND TUCSON XRECOVER TUCSON HLQ(NEW)
The XRECOVER command applies in-process updates to the secondary volumes and clips the secondary volumes to the primary volume serial numbers. The recovery is then complete, with the secondary volumes consistent up to the time reported by the XRECOVER command.