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 / kishore kumar
If ur reading data from any dataset we will use keep option
like set data1(keep = 5 variables);,If ur using in any
procedure just with var statement.If u want to display to
have output with only 5variables out of 100 just use keep
option with data statement.
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
What is the sas data set? : sas-grid-administration
Are you involved in writing the inferential analysis plan? Tables specfications?
What do you code to create a macro? : sas-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 system options would you use to help debug a macro? : sas-macro
What is the maximum length of the macro variable? : sas-macro
What is data _null_?
What is run-group processing?
For clinical entire study how many tables will create approx?
What are the default statistics for means procedure?
Difference between SAS STATA & SPSS?
what is sas business intelligence? : Sas-bi
explain the proc in sas? : Sas-administrator
how to debug and test the sas program? : Sas-administrator
What is the difference between using drop = data set option in data statement and set statement?