SEND OUTPUT TO [ HP Business BASIC/XL Reference Manual ] MPE/iX 5.0 Documentation
HP Business BASIC/XL Reference Manual
SEND OUTPUT TO
The SEND OUTPUT TO statement specifies the output device for the PRINT
statement, the PRINT USING statement, and the default target file for the
COPYFILE statement. If the dev_spec is a disk file that already exists,
additional information is appended to the file.
Syntax
[SEND] OUTPUT [TO] dev_spec
If a program does not contain a SEND OUTPUT TO statement, the output
device for the PRINT statement is the terminal if HP Business BASIC/XL is
running interactively or the standard list device if HP Business BASIC/XL
is running in a job stream. The default target file for the COPYFILE
statement is the standard list device.
The SEND OUTPUT TO statement overrides the COPY ALL OUTPUT TO statement;
if a program contains both statements, then the PRINT statement output is
displayed only on the device specified in the SEND OUTPUT TO statement.
A SEND OUTPUT TO statement generates an error if it executes between the
initiation of report writer output with the DETAIL LINE, TRIGGER BREAK,
TRIGGER PAGE BREAK, or END REPORT statement and termination of the
report.
Examples
>list
10 SYSTEM "FILE LP;DEV=LP"
20 SYSTEM "FILE LASER3;DEV=PP,3;ENV=LP602.HPENV.SYS;CCTL"
30 SEND OUTPUT TO "*LP" !Output sent to LP
40 PRINT "Send a line to the printer."
50 SEND OUTPUT TO DISPLAY,MARGIN=40 !Output sent to DISPLAY
60 PRINT "Line to display on the terminal showing margin at 40."
70 SEND OUTPUT TO "*LASER3" !Output sent to LASER3
80 PRINT "Send a line to the laser printer."
>run
Line to display on the terminal showing
margin at 40.
>
MPE/iX 5.0 Documentation