Specifies the printer to use.

Operating system and syntax UNIX / Windows -o printername
Use with Maximum value Minimum value Single-user default Multi-user default
Client Session System dependent1 System dependent1
printername

Identifies the printer to use when processing the OUTPUT TO PRINTER statement in procedures.

In Windows, use Printer (-o) followed by the name of the printer port. For example:

-o LPT1 

If you do not use the -o parameter, the AVM uses the printer specified as the default printer.

On UNIX, use Printer (-o) followed by the name of the spooler and any necessary parameters. If you do not use the -o parameter, the AVM defaults to lp (System V) or lpr (BSD). If you are passing arguments with this parameter and are using a script such as PRO or one of your own, enclose the entire string in quotes so the argument to -o is returned as a single value when passed to the OpenEdge module. For example:

-o "lp -s" 

The AVM uses the spooler or printer port named at execution time rather than using the name at compile time. That way, precompiled procedures work regardless of which spooler or printer port is in effect.

To use a print spooler with spooler parameters, use OUTPUT TO PRINTER and specify the spooler parameters with -o, as in the following commands:

OUTPUT THROUGH lp spooler-parameters PAGED.
OUTPUT THROUGH lpr spooler-parameters PAGED.
1 See defaults listed below.