BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
Cooksam13
Fluorite | Level 6

Hi I am looking to make an indicator with a range of numeric variables this is what i am inputting 

DATA	WORK;
SET mississippi;


LowSBPInd = (SBP =<90);
NormalSBPInd = (SBP =90-<140);
HighSBPInd = (SBP =>140);



RUN;

 And then I get an error saying there is a Syntax error shown below. how do I do a range indicator?

 

 

77 LowSBPInd= (SBP =<90);
78 NormalSBPInd= (SBP =90-<140);
_
22
ERROR 22-322: Syntax error, expecting one of the following: a name, a quoted string, a numeric constant, a datetime constant,
a missing value, INPUT, PUT.
1 ACCEPTED SOLUTION
2 REPLIES 2

SAS Innovate 2025: Call for Content

Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 25. Read more here about why you should contribute and what is in it for you!

Submit your idea!

Mastering the WHERE Clause in PROC SQL

SAS' Charu Shankar shares her PROC SQL expertise by showing you how to master the WHERE clause using real winter weather data.

Find more tutorials on the SAS Users YouTube channel.

Discussion stats
  • 2 replies
  • 657 views
  • 0 likes
  • 3 in conversation