How do you read in the variables that you need?

Answer Posted / neeraja

using keep(for selected variables).keep is a dataset
option.the statment keep is used to specify the number of
variables to be remained within a sas dataset or output.
syntax:keep <var list>
data emp;
keep name no;
input name$ no sal job$;
cards;
......
....

Is This Answer Correct ?    24 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the maximum length of the macro variable?

790


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

683


what type of graphs we will create(for 2+years candidates)?

1995


How would you identify a macro variable? : sas-macro

629


How do dates work in sas?

738






Mention what is the difference between nodupkey and nodup options?

688


what is star schema? : Sas-di

735


how to remove duplicates using proc sql?

735


Differentiate between sas functions and sas procedures.

738


Hi,by usining ptf how we have to combine (likr merge)10 datasets at a time in the oracle database(and write a macro code also)?Like this i have a douts a lot if you dont mind may please send one text mail for me(madhusudhanap16@gmail.com)?

1329


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

680


How would you code a merge that will write the matches of both to one data set, the non-matches from the left-most data?

738


what is ae onset date n what is RDS

2020


what r the job openings SAS for fresher graduates !

2101


How do you specify the number of iterations and specific condition within a single do loop?

712