Internal Macro Command Definitions; Addlist; Delay; End - HP StorageWorks P9000 User Manual

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

Advertisement

Table 54 Internal macro commands
Type
For lists
For non-lists
The Start and End commands are used together to begin and end the functions of a script. Every
script must have a Start and End command. The If/EndIf commands are also used concurrently
to string two or more functional commands together. The If/EndIf commands must be used
together. For every If command in a script there must be an EndIf command. The Delay
command allows you to delay a script for up to an hour. The MakeString command allows you
to assign several values to a string statement, or the MakeString command can convert numeric
values to sting values. The SetList command allows you to create a list (for example, all the
searchable ports in the P9500, all the searchable LDEVs in the P9500) and the AddList command
allows you to expand the parameters of a list created with the SetList command.

Internal macro command definitions

AddList

The AddList command allows you to add a specified value to a specific list type. If you add a
value to a list that exceeds the maximum number of items for that output list, the excess values will
be ignored. The format for the AddList command is:AddList $D= the output list to which you
want to add a value ,$S= the expressions or values to be added to the output list with a numeric
range of 0x0000 to 0xffff. For example, to add these values (0, 1, 2, 3, 0x1e, and 0x1f) to the
Dev (Device) B list, the AddList command would be:
AddList $D=_ilDevB
,$S={0,1,2,3,0x1e,0x1f}

Delay

The Delay command allows you to delay a script for a specified length of time. The script delay
time is set in seconds (0 - 3600). The format for the Delay command is: Delay $Time= the
length of time you want to delay the script. For example, to delay a script by 60 seconds, the
Delay command would be:
Delay $Time=60

End

The End command allows you to declare the end of a script. The End command also terminates
the execution of a script. At least one End statement must be described in the trailing line of the
script statement.
The format for the End statement is: End

If / EndIf

The IF/EndIf statements are used together to allow you to verify the conditions of an expression.
If the IF/EndIf statement is successfully completed, succeeding statements will be processed. If
the IF/EndIf statement is not successfully completed, the script will abort and the succeeding
Macro
SetList
AddList
Start
End
Delay
If
EndIf
MakeString
Message
Description
Set (define) a list of items.
Add items to a list.
Declares the beginning of a script.
Declares the end of a script.
Suspends script execution for the specified length of time.
Executes a script conditionally.
Terminates a script conditionally.
Makes strings; converts numeric value to character string.
The Message command is not yet supported.
Internal macro commands
1 19

Advertisement

Table of Contents
loading

Table of Contents