Hey, I always used data step to read in data, but this time I used the "proc import" to import the data, and the dataset is imported successfully. But when I tried to use the variables in "proc sql", I selected the variables by their names showed in the table, but SAS always reported that "The following columns were not found in the contributing tables: Category". I want to know if I did something wrong, because when I used the "proc contents" or "describe table" in sql, the variable names are exactly what I used, and I also tried renaming the variables and changing the option validvarname to any, but they didn't work. proc import datafile="/location"
out=work.jeopardy dbms=csv replace;
getnames=yes;
run;
data jeopardy1;
set WORK.jeopardy;
rename 'Show Number'n = ShowNumber;
rename 'Air Date'n = AirDate;
run;
proc contents data = jeopardy1;
run;
proc sql outobs= 10;
select Category
from jeopardy1;
quit; I appreciate it if anyone can help me with this.
... View more