Table 59 ascii character codes, Table 60 if/endif comparison symbols, Makestring – HP StorageWorks XP Remote Web Console Software User Manual
Page 204: Table 61 makestring expression definitions, 59 ascii character codes, 60 if/endif comparison symbols, 61 makestring expression definitions
204 Hitachi TrueCopy z/OS for HP XP12000/XP10000 and SVS 200 storage systems
must contain one conditional decision statement within parentheses. The string values must be compared
). The format for an If/EndIf statement is:
If expression one compared with expression two (see
for comparison expressions)
macro statement, either internal or functional
EndIf
For example, to start a TC390 pair only if the pair was created successfully (result value of CreateHrcPair
command is not 0), use the following If/EndIf command:
If (_Result!=0)
StartHrcPair
EndIf
MakeString
Use the MakeString command 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 table defines the two expression statement in the MakeString command. The
format for the MakeString command is:
MakeString $D= output buffer,$Fmt= expression 1,$Item= expression 2
Table 59
ASCII character codes
Character
Code
0
0x30
1
0x31
9
0x39
A
0x41
Z
0x5a
a
0x61
z
0x7a
Table 60
If/EndIf comparison symbols
Symbol
Meaning
= =
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.
Table 61
MakeString expression definitions
Expression 1
Expression 2
Expression 1 is one of three format control strings
($Fmt):
%d Converts a 16-bit numeric expression to a
decimal number (0 - 65535).
%x Converts a 16-bit numeric expression to a
hexadecimal number (0 - 0xffff).
%s Sets a string as it is.
Expression 2 is any expression not containing a list
reserved variable (must be constant or work variable).