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 / ganesh
We can either use keep or drop option for selecting those
five variables.
| Is This Answer Correct ? | 11 Yes | 2 No |
Post New Answer View All Answers
What is the difference between input and infile statement?
What is the use of the %include statement?
Describe the ways in which you can create macro variables? : sas-macro
How do you specify the number of iterations and specific condition within a single do loop?
Enlist the functions performed by sas.
Differentiate between format and informat? : sas-grid-administration
How to create a permanent sas data set?
For what purpose would you use the RETAIN statement?
What is your favorite all time computer book? Why?
how to change the execute of macro
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 are the categories that sas informats are used to the place the data? : Sas-administrator
Explain the difference between informat and format with an example.
What do you know about symput and symget?
What are the difference between the sas data step and sas procs?