HP XP P9000 Continuous Access Synchronous for Mainframe Systems User Guide
The work variable is part of an execution statement in a script. The following table describes work
variable statements for list and non-list types.
Description and storage typeTypeVariable
Stores the device number list.Numeric_ilDEVList type
Expression: _ilDevA, _ilDevB, _ilDevC
Stores the priority number list.Numeric_ilPriority
Expression: _ilPriorityA, _ilPriorityB,
_ilPriorityC
Stores any 16-bit numeric values.Numeric_ilWork
Expression: _ilWorkA, _ilWorkB, _ilWorkC _ilWorkD,
_ilWorkE, _ilWorkF
Stores any strings.String_slWork
Expression: _slWorkA, _slWorkB, _slWorkC, _slWorkD,
_slWorkE, _slWorkF
Stores any 16-bit numeric value.Numeric_iNumNon-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 (results of macro execution) and status variables (pair
status of specified volume). The reserved variables are for reference use only.
Reserved result variables
When a functional macro is run (for example, CreateHrcPair), a result value (_Result) is issued.
The following figure illustrates the result statement format.
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.
The following table defines the valid result values.
DescriptionTypeVariable
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
144 Continuous Access Synchronous Z scripting