Interview Questions   Tutorials   Discussions   Programs   Videos   

SAS - Under what circumstances would you code a SELECT construct instead of IF statements?




453
views
asked mar September 20, 2014 06:29 AM  

Under what circumstances would you code a SELECT construct instead of IF statements?


           

1 Answers



 
answered By vishnoiprem   0  

When you have a long series of mutually exclusive conditions and the comparison is numeric, using a SELECT group is slightly more efficient than using IF-THEN or IF-THEN-ELSE statements because CPU time is reduced. SELECT GROUP:Select: begins with select group.When: identifies SAS statements that are executed when a particular condition is true. Otherwise (optional): specifies a statement to be executed if no WHEN condition is met.End: ends a SELECT group.

flag   
   add comment

Your answer

Join with account you already have

FF

Preview


Ready to start your tutorial with us? That's great! Send us an email and we will get back to you as soon as possible!

Alert