Help using Base SAS procedures

Correct Usage of IF?

Accepted Solution Solved
Reply
Super Contributor
Posts: 1,040
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: 10,466

Re: Correct Usage of IF?

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: 10,466

Re: Correct Usage of IF?

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.

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

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