Question: Could you help me understand what I ' m doing wrongly? My SAS codes are: * Reading data in; Proc import datafile = ' /

Could you help me understand what I'm doing wrongly?
My SAS codes are:
*Reading data in;
Proc import datafile ='/home/u63781314/Project/Project_AD.csv'
out=mydata dbms=csv replace;
getnames=no;
run;
*print the data to the screen to see if they are okay;
proc print data= mydata;
run;
THIS PART WORKS PERFECTLY
Next codes don't work
1) proc corr data = mydata;
by State;
var Cancer; run;
SAS said that ERROR: Variable CANCER not found.
But my variable name is exactly Cancer.
What I forgot to put in codes? Maybe INPUT with variables names?
Thanks.
How my data set looks like
 Could you help me understand what I'm doing wrongly? My SAS

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!