Reserved variables, Reserved result variables – HP StorageWorks XP Remote Web Console Software User Manual
Page 239
![background image](/manuals/398072/239/background.png)
Table 83 Work Variables (continued)
Description and Storage
Type
Type
Variable
_slWorkD, _slWorkE,
_slWorkF
Stores any 16-bit numeric
value.
Numeric
_iNum
Non-List Type
Expression: _iNumA,
_iNumB, _iNumC, _iNumD,
_iNumE, _iNumF
Stores any string.
String
_sMsg
Expression: _sMsgA,
_sMsgB, _sMsgC, _sMsgD,
_sMsgE, _sMsgF
Reserved Variables
Reserved variables include result variables (that is, result of macro execution) and status variables
(For example, pair status of specified volume). The reserved variables are for reference use only.
Reserved Result Variables
When a functional macro is executed (for example, CreateHrcPair), a result value (_Result) is issued.
“Result Statement Format” (page 239)
illustrates the result statement format, and
lists and defines the valid result values. When a new macro is initiated, the
result value automatically resets to 0x0000. The functional macro executes on the specified number
of devices. If the macro does not satisfy the execution condition, a conditional error occurs. If a
conditional error is found, the result value is OR'ed with 0x1000, and the macro is logged in the
error and macro trace files. If the return value of the API (application program interface) is not 0,
an API error occurs. If an API error occurs, the result value is OR'ed with 0x0100, and the macro
is logged in the error and macro trace files.
Figure 64 Result Statement Format
Table 84 Reserved Result Variables
Description
Type
Variable
Stores the execution results of a macro.
Numeric
_Result
0 = normal end. Other values depend
on the macro.
Stores the execution results of a
Message (internal) macro.
Numeric
_MsgResult
1 = OK, 6 = Yes, 7 = No.
Stores the number of devices found by
SelectHrcDevice macro.
Numeric
_SelectResult
0 = no devices found.
Reserved Variables 239