I am just learning sas and something very simple is eluding me.
I am trying to read specific variables from an existing dataset into a new dataset. I tried something like
data newdataset;
infile olddataset;
input col1 col2;
run;
but I get an error? Can infile only be used with raw data files? i.e. infile = "c:\dirName\rawFile.txt";
Or can it also pull in an existing dataset?
I am trying to read specific variables from an existing dataset into a new dataset. I tried something like
data newdataset;
infile olddataset;
input col1 col2;
run;
but I get an error? Can infile only be used with raw data files? i.e. infile = "c:\dirName\rawFile.txt";
Or can it also pull in an existing dataset?