The following details are for native COBOL only; for details of .NET COBOL, refer to the Comments section.
>>-----printer_redirection=----.-TRUE-.------->< +-FALSE+
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. |
Default: | FALSE |
IDE equivalent: | NoneUse the Application.config file of the project - right-click the file in Solution Explorer and click Open, then select the Run-time Configuration tab. |
To configure this tunable for .NET COBOL, add a reference to a .config file in Visual Studio. Refer to Format of a Configuration File for .NET COBOL for details of the required syntax.
You can also set printer redirection by calling the PC_PRINTER_REDIRECTION_PROC routine.