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

what is PhaseIII, ODS, TLG, Macro and Proc in SAS

3910


Difference between nodup and nodupkey options?

637


what are the best practices to process the large data sets in sas programming? : Sas-administrator

544


what is scheduling and how will u implement it. In scheduling 5 jobs r running if there is an error occured at 3rd job and how will u check and waht necessary steps will u take not to repeat the same mistake

1919


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.

1803






What is the difference between order and group variable in proc report?

845


Which function is used to count the number of intervals between two sas dates?

575


What are pdv and it functions?

606


Did you used proc test? when?

1577


If a variable contains only numbers, can it be a character data type?

616


Have you ever used the SAS Debugger?

1211


Are you involved in writing the inferential analysis plan? Tables specifications?

3482


How do you use the do loop if you don’t know how many times you should execute the do loop?

755


What does P-value signify about the statistical data?

856


What do you know about sas data set?

599