How to Output a Data Set to a Text File
To export data into a flat, text file, use SAS program like this:
data _null_;
set <your data set>;
file '<your output file>' notitles noprint;
put var1 var2 var3 ... varn;
run;
where
<your data set> is the existing SAS data set
<your output file> is the output file you want to create
var1 - varn are the names of your variables.
Note that you do not type the angle brackets (<>), but you do need the
quotation marks around the file name.
|