Download Print this page

HP XP P9500 User Manual: Scripting Syntax; Syntax Overview

Continuous access synchronous for mainframe systems.
Hide thumbs

Advertisement

Table 46 Internal macro commands for Continuous Access Synchronous Z scripting (continued)
Type

Scripting syntax

Before you create a script, make sure you understand the statement and syntax requirements.

Syntax overview

A script file can be written using any text editor (for example, WordPad, NotePad). A script file
consists of an unlimited number of statements that consist of macros (i.e., commands), work variables,
and comments. The first executable statement in a script file must be the Start macro, and the last
statement must be the End macro. Each line in a 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
103)):
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
An empty statement
Table 47 Scripting syntax description
Statement name
Blank statement
Comment statement
Empty statement
Execution statement
Macro statement
Table 48 Script components
Component
Macro name
Parameter list
Expression
Macro
Description
Delay
Suspends script execution for the specified length of time.
If
Executes a script conditionally.
EndIf
Terminates a script conditionally.
MakeString
Makes strings; converts numeric value to character string.
Message
The Message command is not yet supported.
(Table 47 (page
103)). The blank statement is a non-execution statement.
(Table 47 (page
103)). The empty statement is a non-execution statement.
Description
Space or Tab with a return
One line beginning with //
Return only
Work variable statement (non-list type work variable = constant)
Macro name [parameter list]
Description
Either an internal macro or a functional macro.
Parameter identification name (defined in each macro format) = non-list type expression.
List, constant, and work variable.
Table 47 (page 103)
and
Table 48 (page
Scripting syntax 103

Advertisement

   Also See for HP XP P9500

   Related Manuals for HP XP P9500

This manual also for:

P9000

Comments to this Manuals

Symbols: 0
Latest comments: