HP XP P9000 Continuous Access Synchronous for Mainframe Systems User Guide
For example, to start a pair only if the pair was created successfully (result value of CreateHrcPair
command is 0), use the IF/EndIf command, as shown in the following example.
If (_Result==0)
StartHrcPair
EndIf
The following table shows ASCII character codes.
CodeCharacter
0x300
0x311
0x399
0x41A
0x5aZ
0x61a
0x7az
The following table shows the symbols for the allowed comparison expressions, and their meanings.
MeaningSymbol
Expression 1 is equal to Expression 2.= =
Expression 1 is less than Expression 2.<
Expression 1 is less than or equal to Expression 2.<=
Expression 1 is greater than Expression 2.>
Expression 1 is greater than or equal to Expression 2.>=
Expression 1 is not equal to Expression 2.!=
MakeString
The MakeString allows you to edit a string and/or convert numeric values to string characters.
When using the MakeString statement several conditions must be met. For each format control
string statement there must be an $Item statement. The format control string of expression 1 must
be enclosed in quotation marks (““). If you set a value exceeding the maximum length of a string,
the extraneous portion of the value will be not set.
The following example shows the MakeString command format.
MakeString $D= output buffer ,$Fmt= expression 1,$Item= expression 2
The following table defines the two expression statement in the MakeString command.
Expression 2Expression 1
Expression 2 is any expression not containing a list
reserved variable (must be constant or work variable).
Expression 1 is one of three format control strings ($Fmt):
1. %d Converts a 16-bit numeric expression to a decimal
number (0 - 65535).
2. %x Converts a 16-bit numeric expression to a
hexadecimal number (0 - 0xffff).
3. %s Sets a string as it is.
The following example shows the MakeString statement used to convert the 16-bit numeric
expression to a hexadecimal number (0 - 0xffff) and set the string as it is, with an output buffer of
_sMsg.
142 Continuous Access Synchronous Z scripting