Sending Query Results to a File

To send the results of a query to an operating-system file, specify the full pathname for the file. If the file already exists, the output overwrites the current contents.

The following examples show how to send the result of a query to an operating-system file. The example uses UNIX™ file naming conventions.
OUTPUT TO /usr/april/query1
   SELECT * FROM cust_calls WHERE call_code = 'L'