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

Answer Posted / juan

SELECT statement can do logical test. A SELECT statement
provides an alternative to a series of IF and ELSE IF
statements. It is usually more efficient than IF-THEN/ELSE,
especially if you are recoding a variable into a large
number of categories.

Is This Answer Correct ?    7 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

I am preparing SAS Certified Advanced Programmer for SAS 9 in 2014. If anybody has the latest dumps for this exam, please mail me at dhiman.mukherjee@gmail.com

2363


What are the functions which are used for character handling functions?

702


what do you mean by data staging area? : Sas-di

696


If you have a dataset that contains 100 variables, but you need only five of those, what is the code to force SAS to use only those variables?

787


data data1; input dt account; format dt date9.; cards; 1745 1230 1756 1120 1788 1130 1767 1240 ; data data2; input startdt enddt total; format startdt date9. enddt date9.; cards; 1657 1834 12300 1557 1758 16800 1789 1789 12300 1788 1345 12383 1899 1899 13250 ; proc sql; create table data3 as select * from data1 as x left join data2 as y on x.dt>=y.startdt and x.dt<=y.enddt; quit; Here, we are getting cartision product. But,I want left join report consisting of this program. It should not get duplicate values. you can modify the program also.

1914






How to read an input file in sas?

745


what cause the "error: connect:" and "error in the libname statement" when there weren't any such problems?

1805


What is the difference between where and if statement?

718


How would you define the end of a macro?

793


name several ways to achieve efficiency in your program? : Sas programming

671


What are all the problems you faced while validating tables and reports?

3110


how does sas handle missing values in sort order? : Sas programming

618


i have a dataset with 100 obs i want to generate title from 20th obs onwards with total observations. that should contain 100 obs.dont use firstobs and dnt split the data. use dataset block or proc report? how can we genarate;

2067


how does sas handle missing values in assignment statements? : Sas programming

661


How will you use the WHO Drug Dictionary for Reporting Clinical Trials?

1982