Help using Base SAS procedures

Correct Usage of IF?

Accepted Solution Solved
Reply
Super Contributor
Posts: 1,041
Accepted Solution

Correct Usage of IF?

 

Is both the usages right?????

if admit <= bate{i} <= discharge then do;

if admit <= bate{i} AND bate{i} <= discharge then do;

Regards


Accepted Solutions
Solution
‎04-19-2013 05:57 PM
Super User
Posts: 11,343

Re: Correct Usage of IF?

Posted in reply to robertrao

Both will work and should evaluate the same in a data step. There is also BETWEEN for use in Proc SQL.

View solution in original post


All Replies
Solution
‎04-19-2013 05:57 PM
Super User
Posts: 11,343

Re: Correct Usage of IF?

Posted in reply to robertrao

Both will work and should evaluate the same in a data step. There is also BETWEEN for use in Proc SQL.

🔒 This topic is solved and locked.

Need further help from the community? Please ask a new question.

Discussion stats
  • 1 reply
  • 116 views
  • 0 likes
  • 2 in conversation