DATA Step, Macro, Functions and more

ERROR 388-185: Expecting an arithmetic operator.

Reply
New Contributor
Posts: 3

ERROR 388-185: Expecting an arithmetic operator.

 

data variables11 ;

set inlib.income ;

ESTINC= input(STATE MEN_INC WOM_INC, best.) ;

run ;

 

proc print data=inlib.income ;

var STATE MEN_INC WOM_INC ;

title 'ESTIMATED INCOME CHECK' ;

run ;

 

 

im getting the following error message

 

3585  data variables11 ;

3586      set inlib.income ;

3587      ESTINC= input(STATE MEN_INC WOM_INC, best.) ;

                              -------

                              388

                              202

ERROR 388-185: Expecting an arithmetic operator.

 

ERROR 202-322: The option or parameter is not recognized and will be ignored.

 

3588  run ;

 

NOTE: Character values have been converted to numeric values at the places given by:

      (Line)Smiley SadColumn).

      3587:19

NOTE: Numeric values have been converted to character values at the places given by:

      (Line)Smiley SadColumn).

      1:1

NOTE: The SAS System stopped processing this step because of errors.

WARNING: The data set WORK.VARIABLES11 may be incomplete.  When this step was stopped there were

         0 observations and 4 variables.

WARNING: Data set WORK.VARIABLES11 was not replaced because this step was stopped.

NOTE: DATA statement used (Total process time):

      real time           0.04 seconds

      cpu time            0.00 seconds

Super User
Posts: 19,787

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

[ Edited ]
Posted in reply to pbstubejunkie

You've listed too many variables in the INPUT().

 

You can only process one variable at a time. 

 


pbstubejunkie wrote:

 

data variables11 ;

set inlib.income ;

ESTINC= input(STATE MEN_INC WOM_INC, best.) ;

run ;

 

proc print data=inlib.income ;

var STATE MEN_INC WOM_INC ;

title 'ESTIMATED INCOME CHECK' ;

run ;

 

 

im getting the following error message

 

3585  data variables11 ;

3586      set inlib.income ;

3587      ESTINC= input(STATE MEN_INC WOM_INC, best.) ;

                              -------

                              388

                              202

ERROR 388-185: Expecting an arithmetic operator.

 

ERROR 202-322: The option or parameter is not recognized and will be ignored.

 

3588  run ;

 

NOTE: Character values have been converted to numeric values at the places given by:

      (Line)Smiley SadColumn).

      3587:19

NOTE: Numeric values have been converted to character values at the places given by:

      (Line)Smiley SadColumn).

      1:1

NOTE: The SAS System stopped processing this step because of errors.

WARNING: The data set WORK.VARIABLES11 may be incomplete.  When this step was stopped there were

         0 observations and 4 variables.

WARNING: Data set WORK.VARIABLES11 was not replaced because this step was stopped.

NOTE: DATA statement used (Total process time):

      real time           0.04 seconds

      cpu time            0.00 seconds


 

 

New Contributor
Posts: 3

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

Thank you!

Ask a Question
Discussion stats
  • 2 replies
  • 701 views
  • 0 likes
  • 2 in conversation