Makestring - HP StorageWorks P9000 User Manual

Continuous access synchronous for mainframe systems user guide
Hide thumbs Also See for StorageWorks P9000:
Table of Contents

Advertisement

statements will not be completed. When IF/EndIf statements are used, several conditions must
be met. You must end an If statement with an IF/EndIf statement. The execution statement cannot
be defined on the same line as the If statement. The If statement must contain one conditional
decision statement within parentheses. The string values must be compared as ASCII character
codes (see
Table 55 (page
If expression one compared with expression two (see
expressions)
Macro statement, either internal or functional.
IF/EndIf
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.
Example 14 If/Endif format
If (_Result==0)
StartHrcPair
EndIf
Table 55 ASCII character codes
Character
0
1
9
A
Z
a
z
Table 56 (page 120)
Table 56 If/EndIf comparison symbols
Symbol
= =
<
<=
>
>=
!=

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.
Table 57 (page 121)
following example shows the format for the MakeString command.
120 Continuous Access Synchronous Z scripting
120)). The format for an IF/EndIf statement is:
shows the symbols for the allowed comparison expressions, and their meanings.
Meaning
Expression 1 is equal to Expression 2.
Expression 1 is less than Expression 2.
Expression 1 is less than or equal to Exp 2.
Expression 1 is greater than Expression 2.
Expression 1 is greater than or equal to Exp 2.
Expression 1 is not equal to Expression 2.
defines the two expression statement in the MakeString command. The
Table 56 (page 120)
Code
0x30
0x31
0x39
0x41
0x5a
0x61
0x7a
for comparison

Advertisement

Table of Contents
loading

Table of Contents