Assign the fileref DOW to the external file. The fileref DOW is associated with the external file where the output from PROC PRINT is stored.
filename dow 'external-file';