|Oracle® OLAP DML Reference
10g Release 1 (10.1)
Part Number B10339-02
(Read-only) The OUTFILEUNIT option holds the file unit number of the current OUTFILE destination, set by the last OUTFILE command. The first time you redirect output to a given file, OUTFILE assigns that file an arbitrary integer as a file unit number.
You automatically change the setting of OUTFILEUNIT whenever you specify a different file with the OUTFILE command. For example, after the statement
myfilename, the value of OUTFILEUNIT is the file unit number assigned to myfilename.
Example 19-18 Using OUTFILEUNIT with FILEQUERY
Suppose you have saved the file unit number for a file in a variable called
filenum. Your current outfile is another disk file. You want to set the value of PAGEPRG for the first file to the value that it has for the current outfile. Because the file unit number for the current outfile is contained in the OUTFILEUNIT option, you can use FILEQUERY with the OUTFILEUNIT number to get the PAGEPRG setting for the current outfile.
FILESET filenum PAGEPRG FILEQUERY(OUTFILEUNIT PAGEPRG)