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 slowly changing dimension? : Sas-di

0 Answers  


whenever we using the merging through data set merging ,we can get note in log like this "MERGE STATEMENT HAS MORE THAN ONE ONE DATASET BY REPEATED BY VAIABLES" but the output has come in good manner,whenever in in sql(full join) we can get cartion product.so How do overcome this problem in sql?

1 Answers   Accenture,


Do you need to rearrange the order of the data for the report?

0 Answers  


What are the main differences between sas versions 8.2, 9.0, 9.1?

4 Answers  


Tell e how how dealt with..

0 Answers  


if a program has some 1000 or more line and how to know whether the syntax of the particular code is correct without checking it manually

4 Answers   Accenture,


How would you generate 1000 observations from a normal distribution with a mean of 50 and standard deviation of 20. How would you use PROC CHART to look at the distribution? Describe the shape of the distribution.

1 Answers  


What is the maximum and minimum length of macro variable

0 Answers  


Does SAS ?Translate? (compile) or does it ?Interpret?? Explain.

10 Answers  


Will it bother you if the guy at the next desk times the frequency and duration of your bathroom or coffee breaks on the grounds that ?you are getting paid twice as much as he is??

0 Answers   Oracle,


What are SAS/ACCESS and SAS/CONNECT?

0 Answers  


Which date functions advances a date time or date/time value by agiven interval?

3 Answers  


Categories