OUTFILE Subcommand (WRITE command)
OUTFILE specifies
the target file for the output from the WRITE command.
By default, the output is included with the rest of the output from the session.
-
OUTFILEmust be specified before the slash that precedes the start of the variable specifications.
Example
WRITE OUTFILE='/data/writeout.txt'
/1 EMPLOYID DEPT SALARY /2 NAME.
EXECUTE.
-
OUTFILEspecifies writeout.txt as the file that receives theWRITEoutput.