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
what is PhaseIII, ODS, TLG, Macro and Proc in SAS
Difference between nodup and nodupkey options?
what are the best practices to process the large data sets in sas programming? : Sas-administrator
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
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.
What is the difference between order and group variable in proc report?
Which function is used to count the number of intervals between two sas dates?
What are pdv and it functions?
Did you used proc test? when?
If a variable contains only numbers, can it be a character data type?
Have you ever used the SAS Debugger?
Are you involved in writing the inferential analysis plan? Tables specifications?
How do you use the do loop if you don’t know how many times you should execute the do loop?
What does P-value signify about the statistical data?
What do you know about sas data set?