The proc which is used to redirect the output from the normal place to another file is
PRINT
PRINTTO
FSLIST
REPORT