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

Give e an example of..

1788


What are the statements in proc sql?

717


How we can create SAS USER DEFINED CODE?

1776


What is the function of Stop statement in a SAS Program?

819


What are the differences between sum function and using “+” operator?

740






What are the data types does SAS contain?

798


what is star schema? : Sas-di

782


Which are the statements whose placement in the data step is critical?

931


why a stop statement is needed for the point= option on a set statement?

769


What is a macro routine?

2282


how does sas handle missing values in formats? : Sas programming

773


what techniques and/or procs do you use for tables? : Sas programming

745


Of all your work, where have you been the most successful?

4375


What can you learn from the SAS log when debugging?

1058


what is sas metadata server? : Sas-di

774