Kbase P59682: How to control output to multiple destinations via 4GL
Autor |
  Progress Software Corporation - Progress |
Acesso |
  Público |
Publicação |
  16/10/2008 |
|
Status: Unverified
GOAL:
How to control output to multiple destinations via 4GL
FACT(s) (Environment):
Progress 9.x
FIX:
You can make use of the OUTPUT TO VALUE option, for example:
DEFINE VARIABLE outtarget AS CHAR.
outtarget="TERMINAL".
SET outtarget.
OUTPUT TO VALUE(outtarget).
DISPLAY "Report...".
.
.
.
IF outtarget = "PRINTER" THEN DO:
DISPLAY "Report to printer with control codes...".
END.