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):(Column).
3587:19
NOTE: Numeric values have been converted to character values at the places given by:
(Line):(Column).
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
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):(Column).
3587:19
NOTE: Numeric values have been converted to character values at the places given by:
(Line):(Column).
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
Thank you!
Don't miss out on SAS Innovate - Register now for the FREE Livestream!
Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.
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.