3302F Mainframe Operation Manual 25
4.3. Programming Syntax, Parenthesis & Terminators
A variety of indicators are used in the description of the computer commands and in the
Summary tables. The syntax used is defined as follows:
•
SP
:
Space, the ASCII code is 20 Hexadecimal.
•
;
:
Semicolon, Program line terminator, the ASCII code is OA Hexadecimal.
•
NL
:
New line, Program line terminator, the ASCII code is OA Hexadecimal.
•
NR2
:
Digits with decimal point. It can be accepted in the range and format of
###.##### For example: 30.12345. In this instance the Load will read up to
Five significant figures after the decimal point. The decimal point can be
Omitted If not required.
4.3.1.
Parenthesis
The following parenthesis are used in the command descriptions to indicate whether a
Command is necessary or optional and whether a choice has to be made. The symbols
{ },[ ], | or ? are not actually used in the programming script. The symbols { }, [ ] and | are
Merely used to illustrate the nature of the contents.
{ } is Necessary
:
The contents of the { } symbol must be used as part of the
Computer command, it cannot be omitted.
[ ] is Optional
:
The contents of the [ ] symbol indicates that the command is
Optional. The use of the contents depends on the testing
Application.
| is Necessary Choice: This symbol means a choice must be made between the stated
commands. For example “LOW|HIGH” Means a LOW or HIGH
choice needs to be made as part of the command.
? is Necessary Choice :Where a question mark is present it indicates that a choice
Needs to be made. This maybe entering a numerical value
That needs to be set
4.3.2.
Terminators
You have to send the program line terminator character after sending a computer
Command, the available command terminator characters that are accepted by the
3302F mainframe is listed in Table 4-1.
TABLE 4-1 COMMAND Terminators
Semicolon
〝;〞
The semicolon
〝;〞
is a back-up command, the semicolon allows you
To combine command statements on one line to create a command sequence.
LF
LF WITH EOI
CR
,
LF
CR
,
LF WITH EOI