Try OpenEdge Now
skip to main content
Managing ABL Applications
ABL and R-code Deployment and Management : Managing Print Devices : Printing in OpenEdge : OUTPUT THROUGH statement
 
OUTPUT THROUGH statement
The OUTPUT THROUGH statement allows an application to redirect output to a process that OpenEdge starts. On UNIX, this statement allows you to pipe OpenEdge output to a UNIX process. The following is a partial syntax example of the OUTPUT THROUGH statement:
Syntax
OUTPUT [ STREAM stream | STREAM-HANDLE handle ] THROUGH
{ program-name | VALUE ( expression ) }[ argument | VALUE ( expression ) ]...
.
.
.
You can also use the OUTPUT THROUGH statement to access spooling capabilities on UNIX systems. For example, this command sends output to the printer named lw on a UNIX system:
OUTPUT THROUGH lpr -Plw.
For a complete description of the OUTPUT THROUGH statement, see OpenEdge Development: ABL Reference. For more information about streams, see OpenEdge Development: Programming Interfaces.