HP Business BASIC/XL Reference Manual - HP 3000 MPE/iX Computer Systems - Edition 1 (32715-90001)
6-: 10
statement.
num_expr2
A numeric expression that evaluates to the number of
characters in an output field.
num_expr2
is rounded to
an integer,
n2
, called the output field width.
The output line begins with
n1
DIV
n2
output fields of
n2
characters each. If
n1
MOD
n2
is not zero, the
output line ends with one output field of
n1
MOD
n2
characters. For example; a line with margin 75 and
output field width 20 begins with three 20-character
fields and ends with a 15-character field.
If the length of an output item exceeds the output field
width, it is still printed.
Default output field width: See Table 6-10.
NOTE If HP Business BASIC/XL is running interactively, an output
specification statement that specifies a margin has a side effect:
it sets the terminal margin to
n1
.
Table 6-8 gives the possible destination values and the devices that they
specify.
Table 6-8. Destination Device Specifiers
--------------------------------------------------------------------------------------------
| | |
| Specifier | Destination |
| | |
--------------------------------------------------------------------------------------------
| | |
| NULL | The system $NULL file. Usually used to discard |
| | output. |
| | |
--------------------------------------------------------------------------------------------
| | |
| DISPLAY | Terminal if HP Business BASIC/XL is running |
| | interactively; equivalent to PRINTER if HP Business |
| | BASIC/XL is running in a job stream. |
| | |
--------------------------------------------------------------------------------------------
| | |
| PRINTER | The system printer, or if the system printer is a |
| | spooled device, a spool file to be sent to the |
| | system's printer. In the statements SEND SYSTEM |
| | OUTPUT TO, and SEND OUTPUT TO, if you specify |
| |
dev_spec
to be PRINTER, HP Business BASIC/XL uses |
| | the file equation specified as your printer file. |
| | This information is kept in the HP Business |
| | BASIC/XL configuration file and can be changed by |
| | running CNFGHPBB.Pub.Sys. |
| | |
--------------------------------------------------------------------------------------------
| | |
|
formal_designator
|
formal_designator
has the same syntax as
fname
|
| | described in "File Identification" in chapter 9. |
| | Additionally, the
formal_designator
syntax includes|
| [ { ,} ] | the quoted string literals "$STDLIST", "$NULL" and |
| [ { .}FILESIZE[ =] fsize] | "*
fname
". The *
fname
syntax is used to reference |
| [ { ,} ] | device files that have been previously defined |
| | using file equations. The
formal_designator
for |
| |
dev_spec
must reference a device or an ASCII or |
| | BDATA file. If the file does not exist, HP |
| | Business BASIC/XL creates an ASCII disk file with |
| | fixed length 80 byte records. FILESIZE is an |
| | optional parameter allowing specification of the |
| | maximum number of records in the file.
fsize
is a |