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

Answers were Sorted based on User's Feedback



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

Answer / alan

--when you have a long series of mutually exclusive
conditions and comparison is numeric
--CPU time is reduced when using SELECT statements

Is This Answer Correct ?    12 Yes 0 No

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

Answer / sumalatha.ch

select statement is reduced cpu time.and make the programme
easier to read and debug

Is This Answer Correct ?    2 Yes 0 No

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

Answer / 3nadh

Select Statement executes one of several statements or
group of statements.

If Statement :- Continues processing only those obs that
meet the condition.

Is This Answer Correct ?    0 Yes 3 No

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

Answer / jothi sankar

--> When renaming of varibales during getting data itself,

--> new varible creation by combining already existing
varibales(eg: Name = FName + LName) to reduce memory usage

--> When nested conditions are less and getting more %
records from base

Is This Answer Correct ?    0 Yes 4 No

Post New Answer

More SAS Interview Questions

what is picture format? give any one example?

3 Answers   Parexel,


What are the implications?

0 Answers   Quintiles,


Mention the validation tools used in SAS?

0 Answers  


SAS System ?

5 Answers  


If reading an external file to produce an external file, what is the shortcut to write that record without coding every single variable on the record?

4 Answers  






Does anybody has lastest SAS certification dumps,if anybody has please mail me on saggydesai@gmail.com

2 Answers  


How would you define the end of a macro? : sas-macro

0 Answers  


What Proc glm does?

0 Answers  


What are Dashboard reports?And significance of these in analysis?

1 Answers  


Are you sensitive to code walk-throughs peer review or QC review?

0 Answers   Quintiles,


How to include or exclude specific variables in a data set?

0 Answers  


how to display duplicated observations in a data using base sas.

13 Answers   HCL, TCS,


Categories