BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
changwani
Calcite | Level 5

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.

 

 

1 ACCEPTED SOLUTION

Accepted Solutions
PaigeMiller
Diamond | Level 26

Repeating my earlier request:

 

 

Please run PROC CONTENTS on data set TfemAsF as show us the results.

--
Paige Miller

View solution in original post

8 REPLIES 8
data_null__
Jade | Level 19

Fix this first.

 

ERROR: Variable TFEMASF4 not found.

changwani
Calcite | Level 5

Unable to fix while it is present in datafile

ballardw
Super User

@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.

changwani
Calcite | Level 5

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

PaigeMiller
Diamond | Level 26

@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.

--
Paige Miller
changwani
Calcite | Level 5

Your right but error would be some where i am unable to recognize and as new learner user...

PaigeMiller
Diamond | Level 26

Repeating my earlier request:

 

 

Please run PROC CONTENTS on data set TfemAsF as show us the results.

--
Paige Miller
changwani
Calcite | Level 5

Thank you PaigeMiller for you help and all other fellows who commented i found my error. now it is working.

SAS Innovate 2025: Call for Content

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!

Submit your idea!

Mastering the WHERE Clause in PROC SQL

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.

Discussion stats
  • 8 replies
  • 2009 views
  • 0 likes
  • 4 in conversation