Kbase P121439: Getting error 262 with OUTPUT TO PRINTER <printername> statement with v8 on Unix
Autor |
  Progress Software Corporation - Progress |
Acesso |
  Público |
Publicação |
  04/01/2007 |
|
Status: Unverified
FACT(s) (Environment):
Progress 8.3x
SYMPTOM(s):
Getting error 262 with OUTPUT TO PRINTER <printername> statement
** Invalid INPUT/OUTPUT option. (262)
Unable to specify the printer name in the OUTPUT TO PRINTER statement
CAUSE:
OUTPUT TO PRINTER does not support the <printername> option.
The support for <printername> was introduced in version 9.
FIX:
Workaround: Send the information to a file then use UNIX command to print.
Sample code:
OUTPUT TO "temp.txt".
PUT UNFORMATTED TODAY SKIP.
OUTPUT CLOSE.
UNIX SILENT "lp -d <printername> temp.txt" .