HP XP P9000 Continuous Access Synchronous for Mainframe Systems User Guide

MakeString $D=_sMsgB
,$Fmt=EndCode=(0x%x):%s
,$Item=_Result,_sMsgA
The following shows an example of MakeString command output:
_sMsgB = EndCode=(0x110f):Error Occurred.
Message
The Message command is not yet supported.
SetList
The SetList command allows you to assign specific items to a list. The format of the SetList
command is: SetList $D= output list,$S=expression (attribute of the items to be assigned to the list
with a numeric range of 0x0000 to 0xffff). The command used to set 0, 1, 2, 0x1e, and 0x1f to
be displayed in the Dev (Device) B list the command is shown in the following example:
SetList $D=ilDevB,$S={0,1,2,0x1e,0x1f}
Start
The Start command allows you to declare the beginning of a script and check whether the
connected storage system is proper.
The format of the Start command is: Start $Script=HRC,$Svr=xxxxx (xxxxx : S/N of
the connected storage system).
If the S/N input to $Svr is different from the S/N of the connected storage system, the script will
be aborted.
The conditions and how to use the Start command are as follows.
The Start command must be described on the first line of the script.
The Start statement must appear at every script.
The Start statement cannot include a comment statement, an empty statement or a blank
statement.
If the S/N of the connected storage system is less than a 5-digit number (for example, 00102),
input the valid digits only.
Start $Script=HRC,$Svr=102
If you want to run the script without checking the S/N of connected storage system, do not
input any numbers for $Svr between double-quotation marks ("").
Start $Script=HRC,$Svr=""
Work variables
There are two types of work variables: list type, and non-list type. All work variables are initialized
before a script is run.
Numeric work variables may have a value between 0x0000 and 0xffff. Numeric work variables
are initialized with 0.
A non-list string work variable may have a string with length up to 150 bytes. A list string
work variable may have strings with length up to 16 bytes each. String work variables are
initialized with a null string whose length is 0.
A list work variable may have up to 1024 items. A non-list work variable is a constant. List
work variables are initialized as empty (no items).
Work variables 143