Valid in: | Anywhere |
Category: | Data Access |
See: | FILENAME Statement under Windows, UNIX, and z/OS |
You can associate a fileref with a single file or with an aggregate file storage location.
filename out printer operating-environment-option;
data sales;
file out print;
input salesrep $20. +6 jansales
febsales marsales;
put _infile_;
datalines;
Jones, E. A. 124357 155321 167895
Lee, C. R. 111245 127564 143255
Desmond, R. T. 97631 101345 117865
;
libname myfiles 'SAS-library'; filename extfile 'external-file' encoding="utf-8"; data myfiles.unicode; infile extfile; input Make $ Model $ Year; run;
libname myfiles 'SAS-library'; filename outfile 'external-file' encoding="utf-8"; data _null_; set myfiles.cars; file outfile; put Make Model Year; run;