Kbase 8779: Output Device Types: "view" by writing to a file first
Autor |
  Progress Software Corporation - Progress |
Acesso |
  Público |
Publicação |
  10/05/1998 |
|
Output Device Types: "view" by writing to a file first
910719-elp74
7. Output Device Types
7.4. "view" = Send the report to a file, then execute this program
Normally, "view" is used to run a operating-system-specific program
to display a file to the screen. This file contains the output of a
report, label or export. Some examples of the "device-name" are:
DOS: smooth (smooth.com smooth scrolling file list program)
list (list.com file listing program)
browse (browse.com file browse program)
vi (vi.exe program from MKS toolkit)
(smooth.com and browse.com are from PC Magazine)
(list.com is available on many BBS's)
UNIX: view (/usr/ucb/view)
less
VMS: edt
CTOS: "[Sys]<Sys>Editor.run Ed" (standard BTOS/CTOS editor)
The actual code RESULTS uses to execute this program looks something
like this:
OUTPUT TO "_qbf.d" PAGED PAGE-SIZEVALUE(report-page-size)NO-ECHO.
RUN <report>
or
OUTPUT TO "_qbf.d" PAGE-SIZE 0 NO-ECHO.
RUN <label> or <export>
OUTPUT CLOSE.
UNIX VALUE(device-name) "_qbf.d".
DOS VALUE(device-name) "_qbf.d".
VMS VALUE(device-name) "_qbf.d".
BTOS VALUE(device-name) "_qbf.d".
OS2 VALUE(device-name) "_qbf.d".
Some people have used "view" instead of "thru". If you need to run
a program to print a file, you may use "view" instead. For
example, if you are on DOS and you want to print using the DOS
spooler, you could use "PRINT" as the device-name.
(One warning - PRINT must be run
once before PROGRESS is started to install the resident portion,
since PRINT is part TSR and part command.)
Progress Software Technical Support Note # 8779