How do you read in the variables that you need?
Answer Posted / chiranjeevi
using variable control options.
keep:It decides the no. of variable should remain within the
dataset.
syntax:keep<variablelist>;
example:
data code;
input name$ no sal;
keep name sal;
datalines;
a 32 3000
b 56 7000
c 12 7890
run;
proc print data=code;
run;
Is This Answer Correct ? | 5 Yes | 1 No |
Post New Answer View All Answers
How will you react when, while consulting a SAS documentation manual to get an answer to a problem, someone says hey, I thought you were supposed to know all that stuff already, and not have to look it up in a book?
Which function is used to count the number of intervals between two sas dates?
what do the sas log messages "numeric values have been converted to character" mean? What are the implications? : Sas programming
what are sas bi dashboard components? : Sas-bi
what is the difference between floor and ceil functions in sas? : Sas-administrator
How do you specify the number of iterations and specific condition within a single do loop?
What are the best sas programming practices for handling very large datasets? : sas-grid-administration
Why double trailing @@ is used in input statement?
Difference between sum function and using “+” operator?
If a variable contains only numbers, can it be a character data type?
Differentiate input and infile.
Will it bother you if the guy at the next desk times the frequency and duration of your bathroom or coffee breaks on the grounds that ?you are getting paid twice as much as he is??
Explain what is data step?
What do you code to create a macro? : sas-macro
Mention the difference between ceil and floor functions in sas?