The following explains what happens when the operator starts the
PHONBOOK routine on system 2:
- The routine prompts the operator, through a WTOR, to designate
PRIMARY, BACKUP, or NOBACKUP.
- The operator replies BACKUP.
- The task on system 2 issues IXCJOIN as follows:
SYSTEM2 IXCJOIN GRPNAME=PHONBOOK,ANSAREA=(R2),ANSLEN=AREALEN, X
LASTING=NO,MEMNAME=MEMBER2,GRPEXIT=(R4), X
STATEXIT=(R5),MSGEXIT=(R6),USTATE=USTATEB, X
STATFLD=(R7),INTERVAL=INTER1,MEMDATA=(R3), X
USLEN=LEN,RETCODE=RETURN,RSNCODE=REASON,MF=S
Member
2 is now established as the BACKUP member.
- Member 2 issues IXCQUERY to determine if any other members have
joined the group yet. At this point, member 1 is active.
- Member 2 adds itself and member 1 to member 2's copy of the table.
- XCF schedules the group user routine of member 1, notifying member
1 that member 2 is now active. (Member 3 is not active yet, so member
3's group user routine is not scheduled.)
- Member 1's group user routine now updates member 1's table (adds
member 2).
- Member 2 does not attach the DBMGR task because member 2 is not
PRIMARY.
- Member 2 waits for work.