In SAS how to read the variable values having different
formats.
eg:mar99,mar1999 (in a single variable)
Answer Posted / shaik
data m;
input n date monyy7.;
format date monyy7.;
cards;
12 mar99
45 mar1999
45 sep98
run;
we will get output;
Is This Answer Correct ? | 4 Yes | 1 No |
Post New Answer View All Answers
what do you mean by data staging area? : Sas-di
What is a macro routine?
what is hash files in sas and why we are using this one in sas?
What is the difference between one to one merge and match merge? Give an example.
Difference between nodup and nodupkey options?
what is the difference between unique key and primary key? : Sas-di
how sas deals with business intelligence? : Sas-bi
I have a dataset concat having a variable a b & c. How to rename a b to e & f?
what are validation tools that are used in sas? : Sas-administrator
Describe the function and utility of the most difficult SAS macro that you have written?
what is null hypothesis? why do you consider that?
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?
Which are the statements whose placement in the data step is critical?
What would be the result of the following SAS function (given that 31 Dec, 2000 is Sunday)?
What is program data vector (pdv)?