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

B-4 TrueCopy for z/OS Scripting
Hitachi Universal Storage Platform V TrueCopy for IBM z/OS User’s Guide
Syntax for Scripting
Syntax Overview
A TCz script file can be written using any text editor (e.g., WordPad, NotePad).
A script file consists of an unlimited number of statements which consist of
macros (i.e., commands), work variables, and comments. The first executable
statement in a TCz script file must be the Start macro, and the last statement
must be the End macro. Each line in a TCz script file cannot exceed 320 bytes.
A leading blank is ignored, and a leading tab character (0x09) is converted to
a space (0x20). A tab character (0x09) within a string is not converted to a
space.
Each script file should contain all five script statements (see Tables B.3 and
B.4):
A comment statement, including a short preface for the script: purpose,
author, usage, description, operation, creation date, update date, and any
reminder notes to the author. The comment statement is a non-execution
statement. A comment statement begins with “//”and contains text (any
character string) without any commands. Do not use the “//” symbol
anywhere else in a script file, only at the beginning of a comment statement.
A macro statement. The macro statement is an execution statement. Only
one macro instruction can be set per line, and a macro can span more than
one line.
A work variable statement. The work variable statement is also an execution
statement. Only one work variable statement can be set per line, and a work
variable statement cannot span more than one line.
A blank statement (Table B.3). The blank statement is a non-execution
statement.
An empty statement (Table B.3). The empty statement is a non-execution
statement.