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 SAS?

0 Answers  


How does SAS handle missing values in: assignment statements, functions, a merge, an update, sort order, formats, PROCs?

0 Answers   Quintiles,


how does sas handle missing values in a merge? : Sas programming

0 Answers  


Identify statements whose placement in the DATA step is critical?

11 Answers  


What are the default statistics that proc means produce?

0 Answers  






What is the basic structure of a sas program?

0 Answers  


tell me about intnx, intcx functions?

4 Answers   CitiGroup,


how to know the attributes of first five datasets in a library

2 Answers  


if you were told to create many records from one record, show how you would do this using array and with proc transpose? : Sas programming

0 Answers  


How to merge the data using merge statement and proc format? Is the result is same ?

2 Answers  


Differentiate between format and informat? : sas-grid-administration

0 Answers  


What other SAS features do you use for error trapping and data validation?

2 Answers  


Categories