Important Notice
The pages on this site contain documentation for very old MS-DOS software,
purely for historical purposes.
If you're looking for up-to-date documentation, particularly for programming,
you should not rely on the information found here, as it will be woefully
out of date.
ASSIGN-PRINTER Details (↑ Choosing Run-time Behavior)
◄Key► ◄Summary► ◄Up► ◄Contents► ◄Index► ◄Back►
────────────────────────────────────────────────────────────────────────────
This directive has no effect if you specify a a file-name as part of
the ASSIGN TO PRINTER clause.
NOASSIGN-PRINTER causes the output to be sent to the device LST:.
ASSIGN-PRINTER "file-name" causes the output to be directed to the
file-name specified. The file-name can be fully specified, including
a device, path-name, file-name, and extension.
ASSIGN-PRINTER() results in the same behavior as including the
following COBOL statement:
select file-name-1 assign to printer file-name-1
That is, the file-name used in your COBOL program will also be used
as the file-name for your output. If the internal file-name is too
long for your operating system to handle, it will be truncated to the
maximum length the operating system allows. Note that with this
parameter you must use parentheses not quotation marks. By default,
the file-name does not include an extension, but you cam specify an
extension by using the PRINT-EXT directive.
See also ◄PRINT-EXT►
-♦-