Reputation: 153
all I want to do is output the data into an external text file but all I get is blanks.
filename dataout '~/atp_rankings.txt';
data atpdata;
file dataout;
put name pct;
run;
The dataset 'atpdata' is already created from prior work I did in sas. I just can't figure out what I'm doing wrong. I know this is probably trivial but...
Upvotes: 0
Views: 105
Reputation: 21264
You need to specify the input data set, and you're not creating an output data set, so you can use a data _null_
instead.
filename dataout '~/atp_rankings.txt';
data _null_;
Set atpdata;
file dataout;
put name pct;
run;
Upvotes: 1