Explain the difference between using drop = data set option in set and data statement?



Explain the difference between using drop = data set option in set and data statement?..

Answer / Meetha Lal Meena

In SAS, both the SET and DATA statements are used to read data. However, they handle the 'drop' option differently:
1. SET Statement: The DROP=data-set option removes variables from the current SAS data set, but not from the original data set being read.
2. DATA Statement: The DROP statement removes variables from the newly created SAS data set. It does not affect the original data being read.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More SAS Interview Questions

What are the joins,types of joins and thier functions?

7 Answers   SAS,


Which is the best place to learn SAS clinicals and Oracle clinical in hyderabad?

2 Answers  


What does proc print, and proc contents are used for?

1 Answers  


In the flow of DATA step processing, what is the first action in a typical DATA Step?

6 Answers   Accenture,


data study; input Subj : $3. Group : $1. Dose : $4. Weight : $8. Subgroup; x= input(Weight,5.1); datalines; 001 A Low 220 2 002 A High 90 1 003 B Low 193.6 1 004 B High 165 2 005 A Low 123.4 1 ; Why does X get truncated? X shows up as 22 instead of 220,9 instead of 90 and 19.8 instead of 198? This problem doesnt happen with the values 193.6 and 123.4. This does not happen if x is read on the 5. informat instead of the 5.1 informat

2 Answers  


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

1 Answers  


what other sas products have you used and consider yourself proficient in using? : Sas programming

1 Answers  


What is proc sql pass through facility?

4 Answers   L&T,


How to read an input file in sas?

1 Answers  


Does anybody has SAS Platform Administration certification dumps. pls send to hariithepalli@gmail.com

0 Answers  


Explain the use of proc print and proc contents?

1 Answers  


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

1 Answers  


Categories