HP Business BASIC/XL Reference Manual - HP 3000 MPE/iX Computer Systems - Edition 1 (32715-90001)
4- 66
The SKIP feature is used to bypass data in a dataset record that is not
needed by the program. The numeric constant that immediately follows
SKIP specifies the number of bytes to bypass. There must be an IN
DATASET statement for each data set defined in the thread list. Refer to
the THREAD IS statement description below for details about the thread
list. The IN DATASET statement is a nonexecutable statement and is
treated internally like a PACKFMT statement.
INPUT
The INPUT statement assigns data values obtained from the terminal or a
file to one or more variables.
Syntax
[ [{,} ] ]
INPUT[:] [
input item
[{;}
input_item
]...] [:]
Parameters
: A colon specifies that either data currently in the
input buffer should be assigned prior to prompting for
input or extra input is saved in the input buffer.
* If a colon precedes the
input_items
, the INPUT
statement assigns values in the input buffer to
input_elements
, from left to right, before prompting
you for input or reading input from a file. If this
colon is not specified, HP Business BASIC/XL empties
the input buffer before accepting input values.
* If a colon follows the
input_item
s, the INPUT
statement stores unassigned input values that are
not required to satisfy assignments to the
input_items
in the input buffer.
{[
prompt_option
]
input_element
}
input_item
{
for_clause
}
An INPUT statement without
input_items
puts the program
in the input state until you press RETURN, but the
values entered are not assigned to any
input_element
s.
{PROMPT
str_expr
}[,]
prompt_option
{
str_lit
}[;]
If the prompt is not followed by a separator or a comma,
a carriage return is generated and user input begins on
the next line. Semicolons suppress the carriage return
and input can be typed on the same line as the prompt.
See "INPUT Prompt" in chapter 6 for more information.
input_element
One of the following variables that a value is assigned
to:
num_var
str_var
array_name
([*[,*]...])
The last format above has either zero or one asterisk
per dimension. The absence of asterisks specifies any
number of dimensions. Either format is legal, but the
format without asterisks is noncompilable.
for_clause
(FOR
num_var
=
num_expr1
TO
num_expr2
[STEP
num_expr3
],
input_item
[,
input_item
]...)
A
for_clause
is useful for reading array elements (an