Thursday, January 10, 2008

creating a txt/csv/delimited file from a sas data set

filename out1 "c:\project1\sasdata_in_pipe_delimited.txt";
data _null_;
file out1 dlm="|"; /* dlm could be any character */
set one;
put fname lname source id; /* any number of variable from the sas dataset one */
run;

1 comment:

Anonymous said...

Thanks! this was very helpfule for me.