Hi,
I am New to SAS & practicing on SAS university Edition. while practicing for If-then-else statement, I am getting below error;
"ERROR 388-185: Expecting an arithmetic operator.
ERROR 200-322: The symbol is not recognized and will be ignored."
Below is the complete code from editor:
data work.newfile;
set sashelp.heart;
Where Smoking_Status='Non-smoker';
if Weight>100, then Weight_Status='Underweight';
if Weight<100, then Weight_Status='Overweight';
Keep Status Sex Height Weight Weight_Status Smoking Smoking_Status;
run;
proc contents data=work.newfile;
run;
proc print data=work.newfile;
run;
Please help on these.
I tried all possible solutions from my side.
If anyone he