Specify the destination for all subsequent procedure output. The PRINTTO procedure directs the SAS output to the external file that the GPRINT procedure subsequently uses as input. PRINT= directs all printed procedure output to the file referenced by the fileref DOW. NEW causes the output file to be replaced each time the program is run.
proc printto print=dow new;
run;