PreviousNextIndex

OUTPUT CLOSE statement

Closes the default output destination or the output stream you name with the STREAM keyword in a prior OUTPUT TO statement.

Syntax

OUTPUT [ STREAM stream | STREAM-HANDLE handle ] CLOSE 

STREAM stream
STREAM-HANDLE handle
Example

This procedure sends Customer data to a file by using the OUTPUT TO statement. All statements that normally send output to the terminal send output to the file named cust.dat. After all Customer data is written to the file, the OUTPUT CLOSE statement resets the output destination, usually the terminal. The final DISPLAY statement displays "Finished" on the terminal.

r-out.p
OUTPUT TO cust.dat. 
FOR EACH Customer NO-LOCK: 
  DISPLAY Customer.CustNum Customer.Name Customer.Address Customer.Address2 
    Customer.City Customer.State Customer.Country SKIP(2) 
    WITH 1 COLUMN SIDE-LABELS. 
END. 
OUTPUT CLOSE. 
DISPLAY "Finished". 

Notes
See also

DEFINE STREAM statement, OUTPUT TO statement, Stream object handle


OpenEdge Release 10.2B
Copyright © 2009 Progress Software Corporation
PreviousNextIndex