HP 3000 Manuals

COPY ALL OUTPUT TO [ HP Business BASIC/XL Reference Manual ] MPE/iX 5.0 Documentation


HP Business BASIC/XL Reference Manual

COPY ALL OUTPUT TO 

The COPY ALL OUTPUT TO statement copies interpreter and program output on
the file or device specified by dev_spec.  If the dev_spec is a disk file
that already exists, additional information is appended to the file.

Syntax 

COPY ALL OUTPUT [TO] dev_spec 

Parameters 

dev_spec         A device specification statement.  It includes a
                 destination device and can also have the MARGIN and
                 FIELD keywords.  If the device is a disk file, you can
                 also specify a FILESIZE. See chapter 6 for more
                 information.

Examples 

The examples below show some of the different ways to combine parameters
in the COPY ALL OUTPUT TO statement.

     100 COPY ALL OUTPUT TO "MYFILE"
     110 COPY ALL OUTPUT TO "LISTFILE", MARGIN 20
     120 COPY ALL OUTPUT TO Filename$, FILESIZE Num_records
     130 COPY ALL OUTPUT TO Filename$, FILESIZE Num_records, MARGIN Z, FIELD N+1
     140 COPY ALL OUTPUT TO A$+B$, FIELD 10
     150 COPY ALL OUTPUT TO DISPLAY, FIELD X+2, MARGIN 10
     160 COPY ALL OUTPUT TO NULL
     170 COPY ALL OUTPUT TO PRINTER

The SEND OUTPUT TO statement overrides the COPY ALL OUTPUT TO statement.
If a program contains both statements, then PRINT statement output is
displayed only on the device that the SEND OUTPUT TO statement specifies.

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, execution of a COPY ALL OUTPUT TO statement generates an
error.



MPE/iX 5.0 Documentation