DATA Step, Macro, Functions and more

IF-THEN/ELSE vs SELECT

Reply
Contributor
Posts: 27

IF-THEN/ELSE vs SELECT

When do IF-THEN/ELSE statements in a SAS DATA step always use fewer CPU resources than a SELECT statement?
(A) when there is a small selection of uniformly distributed values
(B) when there is a small selection of randomly distributed values
(C) when there is a large selection of uniformly distributed values
(D) when there is a large selection of randomly distributed values

Answer is (A). But why? Any thoughts? Thanks a lot.
Ask a Question
Discussion stats
  • 0 replies
  • 247 views
  • 0 likes
  • 1 in conversation