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


Please Help Members By Posting Answers For Below Questions

name several ways to achieve efficiency in your program? : Sas programming

566


AE datasets names? how many types?

2072


what versions of sas have you used (on which platforms)? : Sas programming

580


How many data types are there in SAS?

630


What are the special input delimiters used in SAS?

650






How would you code a macro statement to produce information on the sas log? This statement can be coded anywhere? : sas-macro

578


what is the use of proc contents and proc print in sas? : Sas-administrator

603


what is the difference between unique key and primary key? : Sas-di

592


how can you put a "trace" in your program? : Sas programming

575


What is the purpose of _character_ and _numeric_?

583


Name and describe few sas character functions that are used for data cleaning in brief.

662


explain the key concept of sas? : Sas-administrator

555


What are the ways in which macro variables can be created in sas programming?

564


Hi all, If Anybody has Advance SAS Certification dumps??? Please share with me. Email: pramod.kalugade03@gmail.com

1577


how we can create a FLAG datasets? Ex:-ID age_group no_persons 1 to 10 10 to 20 3 11 to 20 21 to 30 7 21 to 3o 31 to 40 5

1654