printer_redirection

Redirects WRITE statements through the Windows print spooler.

The following details are for native COBOL only.

Syntax:

>>-----printer_redirection=----.-TRUE-.-------><
                               +-FALSE+

Parameters:

TRUE Redirect WRITE statements to files defined with the ASSIGN TO PRINTER syntax through the Windows print spooler, rather than sending the output directly to the printer port.
FALSE Output is sent directly to the printer port.

Properties:

Default: FALSE
IDE equivalent: Project > Properties > Micro Focus > Run-time Configuration > File Handling > Redirect "ASSIGN to PRINTER" to the Windows print spooler

Comments:

You can also set printer redirection by calling the PC_PRINTER_REDIRECTION_PROC routine.