If you have a data set that contains 100 variables, but you
need only five of those, what is the code to force SAS to
use only those variable?
Answer Posted / john sikha
Use keep followed by variables you required
| Is This Answer Correct ? | 23 Yes | 2 No |
Post New Answer View All Answers
What do the SAS log messages "numeric values have been converted to character" mean?
What are the different operating system platforms in which we can use sas? : sas-grid-administration
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.
Explain how merging helps to combine data sets.
What are the automatic variables for macro? : sas-macro
Describe what are the different levels of administrative users in sas? : sas-grid-administration
How to specify variables to be processed by the freq procedure?
In ARRAY processing, what does the DIM function do?
What does PROC print, and PROC contents do?
what are the categories that sas informats are used to the place the data? : Sas-administrator
What are common programming errors committed in sas
what is ae onset date n what is RDS
Did you used proc test? when?
What do the mod and int function do? : Sas programming
What do you code to create a macro? : sas-macro