How do you read in the variables that you need?

Answer Posted / purushotham

I think KEEP option would be the better way to read the
variables that we need. But it's again depends upon how
many number of variables that you want to read from the
input dataset.

Let's say there are 30 variables in data set and you want
to read all the variables except 5 variables from the input
dataset. Then it's efficient to use DROP option to drop
those 5 variables instead of mentioning all 25 variables at
KEEP option.

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

explain what is factor analysis? : Sas-administrator

688


What is the differnce between SDTM 3.1.2 to 3.1.1 version

4726


How do you use the do loop if you don’t know how many times you should execute the do loop?

869


do you prefer proc report or proc tabulate? Why? : Sas programming

661


What is the basic syntax style in SAS?

713






Give e an example of..

1742


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

696


What are the difference between the sas data step and sas procs?

716


what is sas metadata repository? : Sas-bi

706


List down the reasons for choosing sas over other data analytics tools.

910


: and & modifiers.

958


What do you code to create a macro? : sas-macro

677


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?

1769


Describe a time when you were really stuck on a problem and how you solved it?

2186


Name validation tools used in SAS

802