Re: BTEQ log generatin with in the BTEQ script using .run file

Hi. In case it matters for your efforts... In BTEQ's 16.20.00.04 version a RESET option has been added to the MESSAGEOUT command. This option causes BTEQ to restore the standard output back to the original stdout/SYSPRINT stream, which could be a terminal screen, a redirected file, a pipe, or some other device. It appears you are talking about a batch mode use case. But for completeness here, error handling was also improved so that if a MESSAGEOUT command fails during interactive mode, BTEQ will preserve the previous MESSAGEOUT state without terminating.