Answer Posted / natraj
In data step and Proc step you can use the data set options
such as KEEP= / DROP= .
ex: data xxx (keep=a); or data xxx ( drop= b c);
run;
proc print data=xxx (keep=a) or ( drop= b c);
run;
you can use the VAR STATEMENT in PRINT PROCEDURE to list
the desired varibles;
ex: proc print data= xxx;
var a ; /* put your desired variables */
run;
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
What is a method for assigning first.VAR and last.VAR to the BY group variable on unsorted data?
Describe the function and utility of the most difficult SAS macro that you have written?
for whom is sas data integration studio designed? : Sas-di
Compare sas with other data analytics tools.
what other sas products have you used and consider yourself proficient in using? : Sas programming
what do the pad and dim functions do? : Sas programming
How you can read the variables that you need?
What commands are used in the case of including or excluding any specific variables in the data set?
What are the different types of sas functions?
What are the ways in which macro variables can be created in sas programming?
what are all the reports you generated in your recent project?
What is the basic structure of a sas program?
If you have a dataset that contains 100 variables, but you need only five of those, what is the code to force SAS to use only those variables?
How will you use the WHO Drug Dictionary for Reporting Clinical Trials?
How we can create SAS USER DEFINED CODE?