/RTAKEOVER command

The /RTAKEOVER command requests a remote takeover of an active IMS™ subsystem by a tracking subsystem at a secondary site.

The remote takeover causes the tracking subsystem to finish processing and shut down.

Subsections:

Environment

The following table lists the environments (DB/DC, DBCTL, and DCCTL) in which you can use the commands and keywords.

Table 1. Valid environments for the /RTAKEOVER command and keywords
Command / Keywords DB/DC DBCTL DCCTL
/RTAKEOVER X X X
DUMPQ X X X
FREEZE X X X
NOREVERSE X X X
UNPLAN X X X

Syntax

/RTAKEOVER for an active subsystem

Read syntax diagramSkip visual syntax diagram
>>-+-/RTAKEOVER-+--+-FREEZE-+----------------------------------><
   '-/RTA-------'  '-DUMPQ--'   

/RTAKEOVER for a tracking subsystem

Read syntax diagramSkip visual syntax diagram
>>-+-/RTAKEOVER-+--UNPLAN--+-----------+-----------------------><
   '-/RTA-------'          '-NOREVERSE-'   

Usage notes

If entered on an active subsystem, /RTAKEOVER also causes the active subsystem to shut down. Once the remote tracking subsystem has shut down and remote takeover has successfully completed, one or more subsystems may be brought up in an active role at the secondary site and started with standard IMS restart commands.

Unless you specify the NOREVERSE keyword, a remote takeover can be reversed, even after the /RTAKEOVER command has been issued. The NORTA parameter on the CHANGE.SG command can be used to reverse a remote takeover.

This command can be issued to an IMSplex using the Batch SPOC utility.

/RTAKEOVER for an active subsystem

/RTAKEOVER is issued on the active IMS subsystem to initiate a planned remote takeover and must be specified with either the FREEZE keyword or the DUMPQ keyword.

/RTAKEOVER FREEZE indicates that a /CHECKPOINT FREEZE type of shutdown is performed before the planned takeover occurs.

/RTAKEOVER DUMPQ indicates that a /CHECKPOINT DUMPQ type of shutdown is performed before the planned takeover occurs. This form of takeover provides that all relevant log records reach the tracking subsystem such that no data is lost. This form of takeover allows the capability to rebuild the message queues during the new active start.

/RTAKEOVER must be entered for at least one IMS subsystem in the global service group (GSG) at the active site for which takeover is to occur. The other IMS subsystems at the active site must also be shut down, either with the /RTAKEOVER command, or some form of the /CHECKPOINT command that shuts the system down.

Once the active sends all of its log data sets, the active IMS subsystem shuts down. When all of the active subsystems in the global service group have shut down, the tracking subsystem then completes tracking work, stops online forward recovery (OFR), changes the role of the service group (tracking to active) in the RECON data set, and shuts down.

/RTAKEOVER for a tracking subsystem

/RTAKEOVER UNPLAN is issued on the tracking IMS subsystem to initiate an unplanned remote takeover after the active site fails unexpectedly. /RTAKEOVER UNPLAN causes the tracking subsystem to complete tracking work, stops online forward recovery (OFR), changes the role of the service group (tracking to active) in the RECON data set, and shuts down.

Recommendation:  Specify the NOREVERSE keyword to enable the tracking IMS subsystem to save and process all data it has received from the active site, regardless of whether that data was committed on the active IMS subsystem.

Although you can still reverse a remote takeover even if you specify NOREVERSE, you should not reverse it; in this case, you receive message DFS4122A when you restart the tracking subsystem.

If you do not specify NOREVERSE, the tracking IMS subsystem discards any uncommitted data it has received from the active subsystem.

Examples

The following are examples of the /RTAKEOVER command:

Example for /RTAKEOVER command at active site

Entry ET:
/RTA FREEZE
Response ET:
DFS2939I REMOTE SITE PLANNED TAKEOVER IN PROGRESS SYS3
DFS2719I MSDB CHECKPOINT WRITTEN TO MSDBCP2  SYS3 DFS994I
         *CHKPT 94308/160026**FREEZE*  SYS3
DFS3499I ACTIVE DDNAMES: MODBLKSA IMSACBB  FORMATA  MODSTAT ID:  2 SYS3
DFS3804I LATEST RESTART CHKPT: 94308/160026, LATEST BUILDQ CHKPT: 94308/154950 SYS3
DFS4036I CONVERSATION ENDING WITH SERVICE GROUP STLSITE2 SYS3
DFS3257I ONLINE LOG CLOSED ON DFSOLP01 SYS3
DFS2484I JOBNAME=JT160031 GENERATED BY LOG AUTOMATIC ARCHIVING SYS3
DFS092I  IMS LOG TERMINATED    SYS3
DFS4036I CONVERSATION ENDED  WITH SERVICE GROUP STLSITE2 SYS3
DFS4024I  STOP SERVGRP PROCESSING (INTERNAL) COMPLETE SYS3
DFS2091I IMS TIMER SERVICE SHUTDOWN COMPLETE SYS3
DFS0617I RDS BUFFERS HAVE BEEN SUCCESSFULLY PURGED SYS3
Response received at the Tracking system:
DFS2932I DATABASE UPDATES PRIOR TO SYSTEM SYS3 TAKEOVER HAVE BEEN
 ROUTED SYS3

Example for /RTAKEOVER DUMPQ at active site

Entry ET:
/RTA DUMPQ
Response ET:
DFS2939I REMOTE SITE PLANNED TAKEOVER IN PROGRESS SYS3
DFS2719I MSDB CHECKPOINT WRITTEN TO MSDBCP2  SYS3
DFS994I  *CHKPT 94308/165340**DUMPQ**  SYS3
DFS3499I ACTIVE DDNAMES: MODBLKSA IMSACBB  FORMATA  MODSTAT ID:  2 SYS3
DFS3804I LATEST RESTART CHKPT: 94308/165340, LATEST BUILDQ CHKPT: 94308/165340 SYS3
DFS4036I CONVERSATION ENDING WITH SERVICE GROUP STLSITE2 SYS3
DFS3257I ONLINE LOG CLOSED ON DFSOLP01 SYS3
DFS2484I JOBNAME=JT165345 GENERATED BY LOG AUTOMATIC ARCHIVING SYS3
DFS092I  IMS LOG TERMINATED    SYS3
DFS4036I CONVERSATION ENDED  WITH SERVICE GROUP STLSITE2 SYS3
DFS4024I  STOP SERVGRP PROCESSING (INTERNAL) COMPLETE SYS3
DFS2091I IMS TIMER SERVICE SHUTDOWN COMPLETE SYS3
DFS0617I RDS BUFFERS HAVE BEEN SUCCESSFULLY PURGED SYS3
Response received at the Tracking system:
DFS2932I DATABASE UPDATES PRIOR TO SYSTEM SYS3 TAKEOVER HAVE BEEN
ROUTED SYS3

Example for /RTAKEOVER UNPLAN at remote site

Entry ET:
/RTA UNPLAN
Response ET:
DFS4123I UNPLANNED TAKEOVER IN PROGRESS
DFS2913I CONVERSATION WITH IMS SYS3 TERMINATED: TRK SYS SHUTDOWN
DFS2913I CONVERSATION WITH IMS IMS2 TERMINATED: TRK SYS SHUTDOWN
DFS2500I DATASET  IMZ00007 SUCCESSFULLY DEALLOCATED
DFS2500I DATASET  IMZ00015 SUCCESSFULLY DEALLOCATED
DFS2934I LOG TRUNCATION STARTED FOR IMS: IMS2
DFS2934I LOG TRUNCATION STARTED FOR IMS: SYS3
DFS2943I THERE ARE NO DATA SETS TO TRUNCATE FOR SYS3
DFS2908I DATABASE UPDATES COMPLETE FOR REMOTE TAKEOVER PROCESSING
DFS2500I DATASET  IMZ00020 SUCCESSFULLY CREATED
DFS2500I DATASET  IMZ00021 SUCCESSFULLY ALLOCATED
DFS2500I DATASET  IMZ00021 SUCCESSFULLY DEALLOCATED
DFS2935I TRACKING LOG DATA SETS HAVE BEEN TRUNCATED AT 000000000000209C:
DFS2936I IMSTESTL.RSR.SLDS1.N0000012
DFS2500I DATASET  IMZ00016 SUCCESSFULLY DEALLOCATED
DFS2500I DATASET  IMZ00020 SUCCESSFULLY DELETED
DFS4126I TAKEOVER COMPLETE
DFS994I *CHKPT 94310/160240**FREEZE*
DFS3499I ACTIVE DDNAMES: MODBLKSA IMSACBA  FORMATA  MODSTAT ID:    3
DFS3804I LATEST RESTART CHKPT: 94310/160240, LATEST BUILDQ CHKPT: 94310/155301
DFS3257I ONLINE LOG CLOSED ON DFSOLP01
DFS2484I JOBNAME=JT160245 GENERATED BY LOG AUTOMATIC ARCHIVING
DFS092I IMS LOG TERMINATED
DFS2091I IMS TIMER SERVICE SHUTDOWN COMPLETE
DFS0617I RDS BUFFERS HAVE BEEN SUCCESSFULLY PURGED

Explanation: An unplanned takeover is successfully initiated for a tracking subsystem that was tracking 2 active subsystems (SYS3 and IMS2).