Hitachi TrueCopy for IBM z/OS User and Reference Guide (T5211-96001, June 2007)

B-24 TrueCopy for z/OS Scripting
Hitachi Universal Storage Platform V TrueCopy for IBM z/OS User’s Guide
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 statements will not be completed. When If/EndIf statements are
used, several conditions must be met. You must end an If statement with an
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 B.10). The format for an If/EndIf statement is:
If expression one compared with expression two (see Table B.11 for
comparison expressions)
macro statement, either internal or functional
EndIf
For example, to start a TCz pair only if the pair was created successfully
(result value of CreateHrcPair command is 0), use the following If/EndIf
command:
If (_Result==0)
StartHrcPair
EndIf