Have a look error
662 proc glm data=TfemAsF;
class SOIL H;
model TfemAsF1--TfemAsF4= Soil h(soil) / nouni;
ERROR: Variable TFEMASF4 not found.
NOTE: The previous statement has been deleted.
repeated Col 4(0 1 2 3) polynomial / summary printe;
means SOIL h(Soil)/duncan;
ERROR: Effects used in the MEANS statement must have appeared previously in the MODEL statement.
NOTE: The previous statement has been deleted.
run;
ERROR: A MODEL statement must be given.
Repeating my earlier request:
Please run PROC CONTENTS on data set TfemAsF as show us the results.
Fix this first.
ERROR: Variable TFEMASF4 not found.
Unable to fix while it is present in datafile
@changwani wrote:
Unable to fix while it is present in datafile
?????
The error indicates that the variable is not in the dataset. Or possibly that the variable is not numeric. Remove the variable name from the MODEL statement and see what happens.
I have removed the variable but same error comes with every variable
e.g. Variable TFEMASF4 not found
or TMMOAsF4 not found at fourth repetition point it always unable to find. data file attached
@changwani wrote:
Unable to fix while it is present in datafile
When SAS says one thing, and the user says the opposite thing, I believe SAS.
Please run PROC CONTENTS on data set TfemAsF as show us the results.
Your right but error would be some where i am unable to recognize and as new learner user...
Repeating my earlier request:
Please run PROC CONTENTS on data set TfemAsF as show us the results.
Thank you PaigeMiller for you help and all other fellows who commented i found my error. now it is working.
Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 25. Read more here about why you should contribute and what is in it for you!
SAS' Charu Shankar shares her PROC SQL expertise by showing you how to master the WHERE clause using real winter weather data.
Find more tutorials on the SAS Users YouTube channel.