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

hackathon24-white-horiz.png

The 2025 SAS Hackathon has begun!

It's finally time to hack! Remember to visit the SAS Hacker's Hub regularly for news and updates.

Latest Updates

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
  • 1044 views
  • 0 likes
  • 3 in conversation