Table 62 work variables, Reserved variables, Reserved result ariables – HP StorageWorks XP Remote Web Console Software User Manual
Page 206: Figure 81 result statement format, Table 63 reserved result variables, 81 result statement format, 62 work variables, 63 reserved result variables
![background image](/manuals/397687/206/background.png)
206 Hitachi TrueCopy z/OS for HP XP12000/XP10000 and SVS 200 storage systems
The work variable is part of an execution statement in a script. The following table provides a description
and the storage type of each work variable statement for list and non-list types.
Reserved variables
Reserved variables include result variables (that is, result of macro execution) and status variables (that is,
pair status of specified volume). The reserved variables are for reference use only.
Reserved result ariables
When a functional macro is executed (for example, CreateHrcPair), a result value (_Result) is issued. The
following figure illustrates the result statement format, and the following table 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 (see ”
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 81
Result statement format
Table 62
Work variables
Variable
Type
Description and Storage Type
List Type
_ilDEV
Numeric
Stores the device number list.
Expression: _ilDevA, _ilDevB, _ilDevC
_ilPriority
Numeric
Stores the priority number list.
Expression: _ilPriorityA, _ilPriorityB, _ilPriorityC
_ilWork
Numeric
Stores any 16-bit numeric values.
Expression: _ilWorkA, _ilWorkB, _ilWorkC _ilWorkD, _ilWorkE,
_ilWorkF
_slWork
String
Stores any strings.
Expression: _slWorkA, _slWorkB, _slWorkC, _slWorkD, _slWorkE,
_slWorkF
Non-List Type
_iNum
Numeric
Stores any 16-bit numeric value.
Expression: _iNumA, _iNumB, _iNumC, _iNumD, _iNumE, _iNumF
_sMsg
String
Stores any string.
Expression: _sMsgA, _sMsgB, _sMsgC, _sMsgD, _sMsgE, _sMsgF
Table 63
Reserved result variables
Variable
Type
Description
_Result
Numeric
Stores the execution results of a macro.
0 = normal end. Other values depend on the macro.