02-08-2016 09:21 PM - edited 02-08-2016 09:24 PM
I am using SAS University Edition.
I am receiving this error while using the PROC UNIVARIATE procedure. Other posts on this forum, and on other sites, refer to this error in the context of importing data. There is a suggestion that this error results when the data types are different. Both of these variables are numeric.
The procedure runs without error when only 1 variable is in the VAR statement.
VAR var1 var2;
ERROR: Variable var1 in list does not match type prescribed for this list.
ERROR: Variable var2 in list does not match type prescribed for this list.
Thanks for your assistance.
02-08-2016 09:30 PM
Proc univariate requires numeric variables. Run a proc contents on your dataset to see your variable types. You don't have a DATA= portion in your proc? It's not required, but I'd highly insist on it, so you can trace your code.
proc contents data=have; run;
proc univariate data=have;
var var1 var2;
02-09-2016 01:07 PM
Thanks for the assistance.
Somehow these variable have been "typed" as character data. Yikes. I'm not sure how this happened.
Any suggestions for changing the type?
Btw, I will heed your recommendation on specifying the dataset.