Progress
Language Reference
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
STREAM stream
Specifies the name of a stream. If you do not name a stream, Progress uses the unnamed stream. See the DEFINE STREAM Statement reference entry in this book and the chapter on alternate I/O sources in the Progress Programming Handbook for more information on streams.
EXAMPLEThis 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.
NOTES
- The default output destination is the destination that was active when the procedure began. The output destination is usually the terminal unless the current procedure was called by another procedure while a different destination was active.
- A form feed (new page) is automatically output when a PAGED output stream is closed.
- If the output destination is the Windows clipboard, this statement writes all buffered output data to the clipboard in CF-TEXT format and clears the buffer.
- For more information on directing output, see the Progress Programming Handbook .
SEE ALSO
Copyright © 2004 Progress Software Corporation www.progress.com Voice: (781) 280-4000 Fax: (781) 280-4095 |