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 / vinod swarna
use select statement with just those 5 variables:
proc sql;
create table only5 as
select var1,var2,var3,var4,var5
from example;
quit;
| Is This Answer Correct ? | 8 Yes | 0 No |
Post New Answer View All Answers
what is intially documentation in sas?
What would be the result of the following SAS function (given that 31 Dec, 2000 is Sunday)?
If a variable contains only numbers, can it be a character data type?
How would you define the end of a macro? : sas-macro
how to generate the test data in sas without input data? : Sas-administrator
what is sas metadata repository? : Sas-bi
Which statement does not perform automatic conversions in comparisons?
what is the use of sas management console? : Sas-di
Explain append procedure?
what are the scrubbing procedures in sas? : Sas programming
what type of graphs we will create(for 2+years candidates)?
What is interleaving in SAS?
how many types prompting framework can be broken down to? : Sas-bi
What is maximum storage capability of SAS?
explain the function of substr in sas? : Sas-administrator