Progress
Programming
Handbook


Output to Files or Devices

You can direct the report to a standard text file. Replace the PRINTER option of the OUTPUT TO statement in Figure 7–2 as follows:

OUTPUT TO rpt-out PAGED. 

In this OUTPUT TO statement, rpt-out is the name of the file where you direct the output. ON UNIX, the filename is case sensitive. That is, UNIX treats rpt-out and RPT-OUT as two different files. However, to most other operating systems, these are the same file.

The PAGED option indicates that you want a page break in the output every 56 lines. PAGED is automatic for output to a printer. If you do not use the PAGED option, Progress sends the data to the file continuously without any page break control characters.

You can also use the VALUE option to specify filenames stored in variables or fields. For information, see the "Sending Output to Multiple Destinations" section.

Some operating systems (like UNIX) allow you to send output to devices other than printers, terminals, and disk files using a name (like a filename) to reference them. You redirect output to these devices exactly like files.


Copyright © 2004 Progress Software Corporation
www.progress.com
Voice: (781) 280-4000
Fax: (781) 280-4095