This statement allows the executing SQL script to save output to an OpenVMS file. Output from interactive SQL will be written to the file-spec specified. If the "ECHO" logfile-option is used, in addition to writing the output to the designated file, all commands and errors generated by interactive SQL are also written to SYS$OUTPUT. If the "NOECHO" logfile-option is used, output to SYS$OUTPUT is disabled. All commands and errors generated by interactive SQL are only written to the output file. The SET LOGFILE is functionally equivalent to the SET OUTPUT statement. A SET LOGFILE command that does not specify a file is equivalent to SET NOLOGFILE.