Hitachi TrueCopy for IBM z/OS User and Reference Guide (T5211-96001, June 2007)
B-20 TrueCopy for z/OS Scripting
Hitachi Universal Storage Platform V TrueCopy for IBM z/OS User’s Guide
Getting Pair Status
The GetHrcStatus macro command allows you to obtain the status of a specific
TCz pair. The GetHrcStatus argument is:
• Device (numeric constant, non-list-type and numeric-type work variable):
VOL = L x 0x10000, C x 0x100 + VV, where L=LDKC#, C=CU#, VV=vol#
within the CU.
The GetHrcStatus command obtains the status of the pair from the USP V and
displays the status as a reserved variable “_HrcStatus” (see Table B.15).
Figure B.7 provides an example of the GetHrcStatus command for the pair
with LDEV ID 0x00004a.
Note: When you specify device, you can omit LDKC# if the LDKC# is 0. For
example, You can write 0x0102 when LDKC# is 0, CU# is 1, and vol# is 2.
GetHrcStatus $Dev=0x00004a
_sMsgB=_HrcStatus_Fence
_sMsgC=_HrcStatus_Sync
_sMsgD=_HrcStatus_Sn
_iNumB=_HrcStatus_Ssid
_iNumC=_HrcStatus_DeviceR
Figure B-7 Example of GetHrcStatus Command