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.

 

 

SAS Innovate 2025: Save the Date

 SAS Innovate 2025 is scheduled for May 6-9 in Orlando, FL. Sign up to be first to learn about the agenda and registration!

Save the date!

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.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

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