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 / vsrao

keep option

data ddd;
set sss(keep=a b c d e);
run;

Is This Answer Correct ?    9 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

what are the best practices to process the large data sets in sas programming? : Sas-administrator

540


Hello Friends, am new to this forum and am not good at sas progarmming. please can any one of you send me couple of sample large sample SAS Jobs which can you use 200 MB of data and other sas job upto 25GB of data. am doing a performance testing on our legacy systems and new upgraded system. I would really appreciate if you can do me this favor Thank you Priya

1349


Can you explain the process of calendar?

640


what is the basic structure sas administrator? : Sas-administrator

563


hi here is a problem can anybody solve this? i want to report the data through third party file. by using data _null_ or proc report or macro automation process. but i want to insert the 'titles and footnotes' in between the data and also starting of 2nd and ending of 2nd and starting of 3rd and ending of the 3rd page. tell me how and write the code?

1686






What does PROC print, and PROC contents do?

730


What was the last computer book you purchased? Why?

1912


how to read the variables in sas? : Sas-administrator

554


What are the features of base sas system?

613


What system options would you use to help debug a macro? : sas-macro

637


what is sas application server, database server, sas olap server and sas metadata server? : Sas-di

553


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

582


how do you test for missing values? : Sas programming

581


Describe the function and untility of the most difficult SAS macro that you have written.

1560


what are the new features included in the new version of sas i.e., Sas 9.1.3? : Sas programming

547