BookmarkSubscribeRSS Feed
Adesuwa34
Calcite | Level 5

Hello guys,

 

I wrote a code for my data analysis as shown below:

 

%include 'C:\Users\erhun\Downloads\Thesis\Literature Review\Method\danda.sas'
PROC IMPORT DATAFILE= "C:\Users\erhun\Downloads\Thesis\Literature Review\Method\Roots.xlsx"
OUT= Roots DBMS=XLSX REPLACE;
SHEET= 'Roots';
Run;
PROC SORT DATA= Roots;
By Rep Ksource Krate;
Run;
PROC Glimmix DATA= Roots
CLASS Ksource Krate;
MODEL RLD=Ksource Krate;
Random intercept/subject=Rep;
title1 "Root length density"; Run;
 
 
And I am getting this error statement:
 

33
NOTE: PROCEDURE GLIMMIX used (Total process time):
      real time           0.01 seconds
      cpu time            0.01 seconds
NOTE: The SAS System stopped processing this step because of errors.
34   PROC Glimmix DATA= Roots
35   CLASS Ksource Krate;
     -----
     22
     202
ERROR 22-322: Syntax error, expecting one of the following: ;, (, ABSPCONV, ASYCORR, ASYCOV,
              CF, CHOL, CHOLESKY, DATA, EMP, EMPIRICAL, EPSILON, EXPHESSIAN, FDIGITS, FLOW,
              GRADIENT, H, HESS, HESSIAN, IC, INFOCRIT, INITGLM, INITITER, ITDETAIL, ITDETAILS,
              LIST, LOGNOTE, MAXLMMUPDATE, MAXOPT, METHOD, NAMELEN, NOBSDETAIL, NOBSDETAILS,
              NOCLPRINT, NOFIT, NOINITGLM, NOITPRINT, NOPROFILE, NOREML, NOSTARTGLM, NOTHREADS,
              ODDSRATIO, ODDSRATIOS, OR, ORDER, OUTDESIGN, PCONV, PLOT, PLOTS, PRINT, PRINTALL,
              PROFILE, ROOT, SCOREMOD, SCORING, SINGCHOL, SINGRES, SINGULAR, SPARSITY,
              STARTGLM, SUBGRAD, SUBGRADIENT, TRACE.
ERROR 202-322: The option or parameter is not recognized and will be ignored.
36   MODEL RLD=Ksource Krate;
37   Random intercept/subject=Rep;
38   title1 "Root length density"; Run;
 
Please, what am I doing wrong? I am new to SAS programming.
 
Thank you
2 REPLIES 2
Adesuwa34
Calcite | Level 5

Hello guys,

 

I wrote a code for my data analysis as shown below:

 

%include 'C:\Users\erhun\Downloads\Thesis\Literature Review\Method\danda.sas'
PROC IMPORT DATAFILE= "C:\Users\erhun\Downloads\Thesis\Literature Review\Method\Roots.xlsx"
OUT= Roots DBMS=XLSX REPLACE;
SHEET= 'Roots';
Run;
PROC SORT DATA= Roots;
By Rep Ksource Krate;
Run;
PROC Glimmix DATA= Roots
CLASS Ksource Krate;
MODEL RLD=Ksource Krate;
Random intercept/subject=Rep;
title1 "Root length density"; Run;
 
 
And I am getting this error statement:
 

33
NOTE: PROCEDURE GLIMMIX used (Total process time):
      real time           0.01 seconds
      cpu time            0.01 seconds
NOTE: The SAS System stopped processing this step because of errors.
34   PROC Glimmix DATA= Roots
35   CLASS Ksource Krate;
     -----
     22
     202
ERROR 22-322: Syntax error, expecting one of the following: ;, (, ABSPCONV, ASYCORR, ASYCOV,
              CF, CHOL, CHOLESKY, DATA, EMP, EMPIRICAL, EPSILON, EXPHESSIAN, FDIGITS, FLOW,
              GRADIENT, H, HESS, HESSIAN, IC, INFOCRIT, INITGLM, INITITER, ITDETAIL, ITDETAILS,
              LIST, LOGNOTE, MAXLMMUPDATE, MAXOPT, METHOD, NAMELEN, NOBSDETAIL, NOBSDETAILS,
              NOCLPRINT, NOFIT, NOINITGLM, NOITPRINT, NOPROFILE, NOREML, NOSTARTGLM, NOTHREADS,
              ODDSRATIO, ODDSRATIOS, OR, ORDER, OUTDESIGN, PCONV, PLOT, PLOTS, PRINT, PRINTALL,
              PROFILE, ROOT, SCOREMOD, SCORING, SINGCHOL, SINGRES, SINGULAR, SPARSITY,
              STARTGLM, SUBGRAD, SUBGRADIENT, TRACE.
ERROR 202-322: The option or parameter is not recognized and will be ignored.
36   MODEL RLD=Ksource Krate;
37   Random intercept/subject=Rep;
38   title1 "Root length density"; Run;
 
Please, what am I doing wrong? I am new to SAS programming.
 
Thank you
Astounding
PROC Star

Remember, every SAS statement should end with a semicolon.

 

That includes the %INCLUDE statement as well as the PROC GLIMMIX statement.

 

 

Ready to join fellow brilliant minds for the SAS Hackathon?

Build your skills. Make connections. Enjoy creative freedom. Maybe change the world. Registration is now open through August 30th. Visit the SAS Hackathon homepage.

Register today!
How to Concatenate Values

Learn how use the CAT functions in SAS to join values from multiple variables into a single value.

Find more tutorials on the SAS Users YouTube channel.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

Discussion stats
  • 2 replies
  • 751 views
  • 1 like
  • 2 in conversation