Learning SAS? Welcome to the exclusive online community for all SAS learners.

ERROR 388-185: Expecting an arithmetic operator.

Accepted Solution Solved
Reply
Occasional Contributor
Posts: 7
Accepted Solution

ERROR 388-185: Expecting an arithmetic operator.

Hi everyone! I'm trying to run my code with exported raw data. The raw data is saved in csv and I ran it alone and it works just fine, but when I try to run it with some other commands it doesn't work at all. 

 

Here's the code that I'm using:

 


proc import datafile = '/folders/myshortcuts/SASUniversityEdition/Myfolders/cruza.csv'
out=work
DBMS=csv
replace;
getnames= YES;
run;

data WORK.WORK;
set WORK.WORK;
keep= edad musc sexo toro tern_co col_L col_a col_b pH hume intra_fat
run;
proc print data = cruza;
run;

proc glimmix data=cruza;
class edad musc sexo toro;
model pH = sexo | musc;
random toro(edad);
lsmeans edad | musc / pdiff lines;variables in output SAS data sets

run;

 

 

And here are the errors I'm  getting in the log tab:

 

NOTE: WORK.WORK data set was successfully created.
NOTE: The data set WORK.WORK has 56 observations and 11 variables.
NOTE: PROCEDURE IMPORT used (Total process time):
real time 0.09 seconds
cpu time 0.06 seconds
 
 
128
129 data WORK.WORK;
130 set WORK.WORK;
131 keep= edad musc sexo toro tern_co col_L col_a col_b pH hume intra_fat
____
388
76
ERROR 388-185: Expecting an arithmetic operator.
 
ERROR 76-322: Syntax error, statement will be ignored.
 
I've been reading solutions from other people but nothing has worked for me. Can someone please help me? Smiley Happy

Accepted Solutions
Solution
‎02-03-2018 01:12 PM
Super User
Posts: 6,930

Re: ERROR 388-185: Expecting an arithmetic operator.

Posted in reply to ValeriaRodz

Your KEEP statement contains two errors.

 

When KEEP is used as a stand-alone statement, the equal sign should be removed.

 

And it needs a semicolon at the end.

View solution in original post


All Replies
Solution
‎02-03-2018 01:12 PM
Super User
Posts: 6,930

Re: ERROR 388-185: Expecting an arithmetic operator.

Posted in reply to ValeriaRodz

Your KEEP statement contains two errors.

 

When KEEP is used as a stand-alone statement, the equal sign should be removed.

 

And it needs a semicolon at the end.

Occasional Contributor
Posts: 7

Re: ERROR 388-185: Expecting an arithmetic operator.

Posted in reply to Astounding
Thanks!!!
☑ This topic is solved.

Need further help from the community? Please ask a new question.

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