Coding with SAS Studio 9.4, I got the following error message:
BMI17fNS1=
743 pmeat17KCAj
744 +rmeat17KCAj
745 +fish17KCAj
746 +milk17KCAj
747 +poultry16KCAj
748 +eggs16KCAj
749 ;
750
751 BMI17fNS2=
752 fruits17KCAj
753 +vegetables17KCAj
754 +nutsseeds17KCAj
755 +potatoes16KCAj
756 +wgrains17KCAj
757 +legumes17KCAj
758 +rice16KCAj
759 +swtpot16KCAj;
760
761 BMI17fNS3=BMI17fNS1/BMI17fNS2;
762
763 BMI17fNS4=
764 (BMI17fNS3*3.04491
765 -PAMETs17m*0.00039009) /1.25398;
766
767 BMI17fNS5=BMI17fNS4 +22.20829;
___
22
ERROR 22-322: Syntax error, expecting one of the following: !, !!, &, *, **, +, -, /, <, <=, <>, =, >, ><, >=, AND, EQ, GE, GT, IN,
LE, LT, MAX, MIN, NE, NG, NL, NOTIN, OR, ^=, |, ||, ~=.
768 *
ERROR: The name is not a valid SAS name.
ERROR: The name is not a valid SAS name.
I first tried to add the 22.20829 in the BMI17fNS4 expression and got the same syntax error. Other times the same simple addition of a constant does not throw an error message.
What is my problem?
Thanks.
David K. Cundiff
... View more