New SAS User

Completely new to SAS or trying something new with SAS? Post here for help getting started.
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-white.png

Our biggest data and AI event of the year.

Don’t miss the livestream kicking off May 7. It’s free. It’s easy. And it’s the best seat in the house.

Join us virtually with our complimentary SAS Innovate Digital Pass. Watch live or on-demand in multiple languages, with translations available to help you get the most out of every session.

 

Register now!

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
  • 2847 views
  • 0 likes
  • 4 in conversation